I have this VBA Project in Excel (Public Function) and I want to set the value of a named range and it is not happening. The function (public) just ends and returns a #value error.
instead of Names("mStamp").Value = "love"
try ActiveSheet.Range("mStamp").Value = "love"
or
Sheets("Sheet1").Range("mStamp").Value = "love"
substitue your sheet name for Sheet1 above.
If so - what are you trying to do ?? The value property of a name refers to its FORMULA. If you wish to set the VALUE of a named range on a spreadsheet, see my earlier post and look in VBA help, otherwise, please try and explain what you are attempting to do
Rgds, Geoff
Never test the depth of water with both feet
Help us to help you by reading FAQ222-2244 before you ask a question
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.