mrlemmer11
New Member
- Joined
- Jun 8, 2015
- Messages
- 32
Hi All,
First post here.
I've spent 3 hours trying to figure this out and just can't do it.
Basically I have a UserForm in WORD VBA with the Excel Reference added onto it. I have named my UserForm under properties (Name) to formStage1.
Now I have a whole bunch of command buttons and which saves the data from their related text fields to different variables.... this all works. However, I'm trying to be mindful to the fact that I may want to change my (Name) from formStage1 to formStage37 one day.... and if I do that, I would need to go into my code and change all of my strEdition = formStage1.boxEdition to strEdition = formStage37.boxEdition ..... which would be a big pain
I've tried so many ways to declare oForm1 publicly outside of any Subs and then set it using set oForm1 = UserForms.Add(formStage1) and about 100 different things.... and I can't get it to work.
Any Help? Thanks everyone!
First post here.
I've spent 3 hours trying to figure this out and just can't do it.
Basically I have a UserForm in WORD VBA with the Excel Reference added onto it. I have named my UserForm under properties (Name) to formStage1.
Now I have a whole bunch of command buttons and which saves the data from their related text fields to different variables.... this all works. However, I'm trying to be mindful to the fact that I may want to change my (Name) from formStage1 to formStage37 one day.... and if I do that, I would need to go into my code and change all of my strEdition = formStage1.boxEdition to strEdition = formStage37.boxEdition ..... which would be a big pain
I've tried so many ways to declare oForm1 publicly outside of any Subs and then set it using set oForm1 = UserForms.Add(formStage1) and about 100 different things.... and I can't get it to work.
Any Help? Thanks everyone!