Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In my activesheet I have the value Memphis
In my code I'm try to get the Msgbox to say: Memphis has not reported in today<< but the following is turning red in my code window; can someone assist? MsgBox "Range("D1").value & " has not reported in today" |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
one double quote too many. try this MsgBox Range("D1").value & " has not reported in today" another way..... Dim r As Range Set r = Range("D1") MsgBox r.Value & " has not reported in today" regards FSt1 "JMay" wrote: In my activesheet I have the value Memphis In my code I'm try to get the Msgbox to say: Memphis has not reported in today<< but the following is turning red in my code window; can someone assist? MsgBox "Range("D1").value & " has not reported in today" |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
MsgBox activesheet.Range("D1").value & " has not reported in today"
I'd qualify the range with the sheet and/or the workbook/sheet. And just in case: MsgBox activesheet.Range("D1").value _ & " has not reported in today: " _ & format(date,"mmmm dd, yyyy") JMay wrote: In my activesheet I have the value Memphis In my code I'm try to get the Msgbox to say: Memphis has not reported in today<< but the following is turning red in my code window; can someone assist? MsgBox "Range("D1").value & " has not reported in today" -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Guys
"Dave Peterson" wrote: MsgBox activesheet.Range("D1").value & " has not reported in today" I'd qualify the range with the sheet and/or the workbook/sheet. And just in case: MsgBox activesheet.Range("D1").value _ & " has not reported in today: " _ & format(date,"mmmm dd, yyyy") JMay wrote: In my activesheet I have the value Memphis In my code I'm try to get the Msgbox to say: Memphis has not reported in today<< but the following is turning red in my code window; can someone assist? MsgBox "Range("D1").value & " has not reported in today" -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
runtime error: syntax error or access violation | Excel Programming | |||
runtime error: syntax error or access violation | Excel Programming | |||
syntax for code in MsgBox()? | Excel Programming | |||
MsgBox Syntax | Excel Programming | |||
Syntax Error Runtime Error '424' Object Required | Excel Programming |