Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
MsgBox cell address
Hi I am currently trying to inform the user if a certain cell needed
for the macro is empty, the code that I have works fine but it always shows the cell address as $B$4 instead of B4. Is there a way that I can get it to show the cell address without the dollar signs. Here is my code. If newSht = "" Then MsgBox "There must be a fixture name present in cell " & ActiveCell.Address Exit Sub End If Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
MsgBox cell address
activecell.address(false,false)
"A & S" wrote: Hi I am currently trying to inform the user if a certain cell needed for the macro is empty, the code that I have works fine but it always shows the cell address as $B$4 instead of B4. Is there a way that I can get it to show the cell address without the dollar signs. Here is my code. If newSht = "" Then MsgBox "There must be a fixture name present in cell " & ActiveCell.Address Exit Sub End If Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
MsgBox cell address
On Thu, 30 Jul 2009 06:55:14 -0700 (PDT), "A & S"
wrote: Hi I am currently trying to inform the user if a certain cell needed for the macro is empty, the code that I have works fine but it always shows the cell address as $B$4 instead of B4. Is there a way that I can get it to show the cell address without the dollar signs. Here is my code. If newSht = "" Then MsgBox "There must be a fixture name present in cell " & ActiveCell.Address Exit Sub End If Thanks Try this modification: MsgBox "There must be a fixture name present in cell " & ActiveCell.Address(False, False) Hope this helps / Lars-Åke |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
MsgBox cell address
Use this line: Code: -------------------- MsgBox "There must be a fixture name present in cell " & Replace(ActiveCell.Address, "$", "") -------------------- A & S;435894 Wrote: Hi I am currently trying to inform the user if a certain cell needed for the macro is empty, the code that I have works fine but it always shows the cell address as $B$4 instead of B4. Is there a way that I can get it to show the cell address without the dollar signs. Here is my code. If newSht = "" Then MsgBox "There must be a fixture name present in cell " & ActiveCell.Address Exit Sub End If Thanks -- The Code Cage Team Regards, The Code Cage Team 'The Code Cage' (http://www.thecodecage.com) ------------------------------------------------------------------------ The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=121001 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Returning a cell address in a msgbox, by selection via inputbox Ty | Excel Discussion (Misc queries) | |||
Get cell name into MsgBox? | Excel Programming | |||
MsgBox using cell references | Excel Programming | |||
How MsgBox can show address? | Excel Programming | |||
Return Address of Blank Cells in MsgBox | Excel Programming |