VBA。我在哪里可以保存用户输入的设置? [英] VBA. Where can I save the settings entered by the user?

查看:169
本文介绍了VBA。我在哪里可以保存用户输入的设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VBA。 

第1步

MS Project文件是打开。

用户启动宏。

表格打开。

用户输入路径。

用户点击"保存"。

用户关闭表单。

用户关闭MS Project文件。



步骤2

用户打开MS Project文件。

用户赢得宏。

表格已打开。

表格显示用户注册的路径"阶段1"

Step 1
The MS Project file is open.
The user starts the macro.
The form is opened.
The user enters the path.
The user clicks "Save".
The user closes the form.
The user closes the MS Project file.

Step 2
The user opens the MS Project file.
The user wins the macro.
The form is opened.
The form displays the path that the user has registered for "Stage 1"

如果用户在表单中第二次打开表单(步骤2)时显示了保存在(步骤1)中的路径?

换句话说,在表单关闭后(步骤1),文本框的值被保留了?



此文本框值是否可以保存在MS Project文件中?

或者我应该将其保存在单独的文件中?
如何做得最好?

How to make that when the user opens the form a second time (Step 2) in the form was displayed the path that was saved in (Step 1)?
In other words, after the form was closed (Step 1), the value of the textbox was retained?

Can this textbox value be saved in the MS Project file?
Or should I save it in a separate file?
How is this best done?

推荐答案

访问应用程序设置(Visual Basic)| Microsoft Docs

管理应用程序设置(.NET)| Microsoft Docs


这篇关于VBA。我在哪里可以保存用户输入的设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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