Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've programmed vba in access before but not Excel. I simply want to create
a msgbox that shows the value of a cell. Example sheet1: A B C 1 Value No No 2 No No No code: msgbox A1 does not return the referenced value. Just blank (triggering off a command button). Sorry for such a nobb question....But thanks! Robert |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Feb 7, 10:46*am, Robert_DubYa
wrote: I've programmed vba in access before but not Excel. *I simply want to create a msgbox that shows the value of a cell. Example sheet1: * * * * * A * * * * *B * * * * *C 1 * * Value * * * No * * * *No 2 * * * *No * * * *No * * * *No code: msgbox A1 does not return the referenced value. *Just blank (triggering off a command button). Sorry for such a nobb question....But thanks! Robert MsgBox Sheets("Sheet1").Range("A1") |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
msgbox activeworkbook.worksheets("sheet99").range("a1").v alue
or msgbox activesheet.range("x99").text 'if it's formatted nicely. Robert_DubYa wrote: I've programmed vba in access before but not Excel. I simply want to create a msgbox that shows the value of a cell. Example sheet1: A B C 1 Value No No 2 No No No code: msgbox A1 does not return the referenced value. Just blank (triggering off a command button). Sorry for such a nobb question....But thanks! Robert -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If the cell you want the msgbox to display is the activecell then maybe:
msgbox activecell.value -- JB "Robert_DubYa" wrote: I've programmed vba in access before but not Excel. I simply want to create a msgbox that shows the value of a cell. Example sheet1: A B C 1 Value No No 2 No No No code: msgbox A1 does not return the referenced value. Just blank (triggering off a command button). Sorry for such a nobb question....But thanks! Robert |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy/Paste cell down to next value- Easy question, can't figure it | Excel Discussion (Misc queries) | |||
An easy question | Excel Programming | |||
EASY QUESTION: Formula to add filename to cell | Excel Programming | |||
Easy question - If ...then Change cell value | Excel Programming | |||
new user with easy question? not easy for me | New Users to Excel |