Global Static and dynamic variable possible?

ShieBoon

Board Regular
Joined
May 3, 2011
Messages
111
Hi all, i need a variable for a date which is static, global, and the value of this variable can be changed via a userform. Is that possible?? :|

Excel 2003
Shie Boon
Thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi rorya, i've created a new name like you advised and specified a value for it.

Now i am trying to access the value within the name and display that value in a textbox of a userform. Could you tell me the codes for it?

Thanks,
Shie Boon
 
Upvote 0
Hi rorya, i have managed to access that value from the name. Now i just need to format that value to a date.

Thanks,
Shie Boon
 
Upvote 0
How did you store it? as a number or a date string?
 
Upvote 0
I stored the value into the name as a date. 31/12/11. But it changed into =41274. So i removed the equals sign and formatted in into a date via vba. It works already. :)

Thank you so much, for your time and efforts to reply me patiently, rorya. :)

Thanks,
Shie Boon
 
Upvote 0

Forum statistics

Threads
1,217,391
Messages
6,136,324
Members
450,005
Latest member
BigPaws

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top