Dear Friends,
I am Using a Command button in my Spread sheet through which I ll be getting a value to variable " I ". I want to pass this value of " I " to a userform created in the same sheet.
Can somebody suggest me how to perform this.
Thanks.
Dear Friends,
I am Using a Command button in my Spread sheet through which I ll be getting a value to variable " I ". I want to pass this value of " I " to a userform created in the same sheet.
Can somebody suggest me how to perform this.
Thanks.
Last edited by nivassrii; 05-30-2011 at 01:17 AM.
nivassrii,
I'd recommend using a public variable. To declare a public variable, at the top of a standard module, type:
![]()
Please Login or Register to view this content.
If I is a different kind of variable, just change the type from String to whatever it needs to be. Then you can just reference I in subroutines and userforms.
Hope this helps,
~tigeravatar
tigeravatar,
The Idea is not working. Can you please check with my Spread Sheet attached here.
Once you show the userform modal the code lines following the show method will not execute until the userform is unloaded or hidden.
Instead execute the commands before showing. No need for public variable.
![]()
Please Login or Register to view this content.
Thank you its working..
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks