Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting value from names cell into MSGBOX 1

Status
Not open for further replies.

MCubitt

Programmer
Mar 14, 2002
1,081
GB
I have a named cell and want to embed teh value inside the cell into a msgbox text.

EG:
dummy = MsgBox(Cells(ReportTitle).Value & vbCr & vbCr & HelpText, vbOKOnly, ReportTitle)


Where ReportTitle is the named cell (and so is HelpText)









Applications Support
UK
 
Hi MCubitt,

Try this instead:
[blue][tt] dummy = MsgBox([/tt][red][tt][ReportTitle][/tt][/red][tt].Value & vbCr & vbCr & HelpText, vbOKOnly, ReportTitle)[/tt][/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
Tony,

Thank you, I never knew that so that'll be what I have learned today.

regards


Applications Support
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top