是否有VBA内置函数来读取.ini文件? [英] Are there VBA built-in functions to read .ini files?

查看:121
本文介绍了是否有VBA内置函数来读取.ini文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在尝试查找内置VBA函数或函数集来解析.ini文件中的配置信息。


我看到GetSetting和SaveSetting可用,但我不想将注册表用于我的用户的配置设置,而是使用老式的.ini文件。


我知道我可以编写这些函数,但我不愿意,并且认为VBA可能会提供开箱即用的功能。


解决方案

您可以在VBA中使用API​​例程。


http://vbadud.blogspot.co.uk/2008/11/how-对读取和写入configuration.html

Hi there,

I'm trying to find a VBA built in function or set of functions to parse configuration information from .ini files.

I see GetSetting and SaveSetting available, but I prefer not to use the registry for my users' configuration settings, but an old-fashioned .ini file.

I know I can write these functions, but I'd rather not and thought VBA might offer that out-of-the-box.

解决方案

There are API routines you can use in VBA

http://vbadud.blogspot.co.uk/2008/11/how-to-read-and-write-configuration.html


这篇关于是否有VBA内置函数来读取.ini文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆