Hello All,
First of all, I'm happy that my Excel knowledge is developing thanks to you. I'm using my macros now for months and they work fine. Now, I'm trying to improve them, But I came up with an idea to increase dynamism, and got stuck. The main idea is that more users use my macros, but everyone has a different path in the files for them. For this reason, I would like to have my UserForm a little extra like this.
Attachment 268600
Here, People could put in the path name of their file. And heres a little twist. The macros would use these when opening a workbook. I think is more User Friendly then changing the code every time I send them an update of the macro.
So, basically, a user could edit that text enter the file pathname like "C:/Users/temp.xlsx", then save it.The pathname would be saved upon pushing the command button to save and stored as a string. I would use these variants for my other macros, f.e., when opening a file:
Workbooks.Open Filename:= _
"C:/Users/temp.xlsx" (which here would be 'path1')
Sheets("Sheet1").Select
My questions would be:
- Is this all possible, if I use a Textbox, can I enter data in it? I didnt find any Inputbox in Toolbar.
- How should I define the saved variant, and how can other macros access it?
- How can I make the save command button to update the variant and text out the latest save in the path display?
I know it is much, hope you can help me! This would greatly help me understand the cross-references in Excel.
Thank you in advance,
Ambrus
Bookmarks