It all depends on whether this value is to be changed or whether you just want to show a static piece of text / value
To show a piece of static text / value, go to the controlsource property and enter
Sheet1!F3
for example - where range F3 on Sheets Sheet1 is the data source. If your sheet name has spaces in it, you'll need to use
'Name With Spaces'!F3
Other than that, you shouldn't use the code in the textbox change event - it should be in the form load / activate event
also - you can't use the Activeworksheet syntax as there is no active worksheet - the form is active. Use
sheets("Sheetname".range("F3"
HTH Rgds
~Geoff~
Yes I don't want to edit the text, but i do want the value to = the cell value of the sheet in use.
Tried entering controlsource property but got the following error message "Could not set the ControlSource property. Invalid property value".
Not too sure about the placing of the code. I could do with a bit more help if possible
If you just want the static value, you don't need any code.
To set the controlsource property, highlight the textbox
Go to the properties window
In the box next to Controlsource, enter
Sheetname!F3
Substitute whatever your sheet is called for "Sheetname"
If the name of the sheet has spaces in it eg "Master Sheet"
you will need to emclose the sheet name in ' 'ie
'Master Sheet'!F3
HTH Rgds
~Geoff~
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.