Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want the data that is in the 1st cell of a row to be a variable, to use in
a message box. Ok if the user has selected say, A17 Dim Lname, Msg, Style, Title, Help, Ctxt, Response, MyString Lname = Selection Msg = "Do you want to delete" + Lname + " ?" ' Define message. But if he's selected the whole row or say A17 to E17, this doesnt work. I can t seem to get info() or row() to work ? thanks if you can help ? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
does this help
Sub msgboxdel() MsgBox "Do you want to delete " & ActiveCell.Address End Sub -- Don Guillett SalesAid Software "Archie" wrote in message ... I want the data that is in the 1st cell of a row to be a variable, to use in a message box. Ok if the user has selected say, A17 Dim Lname, Msg, Style, Title, Help, Ctxt, Response, MyString Lname = Selection Msg = "Do you want to delete" + Lname + " ?" ' Define message. But if he's selected the whole row or say A17 to E17, this doesnt work. I can t seem to get info() or row() to work ? thanks if you can help ? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How about
Cells(Activecell.Row,1) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Archie" wrote in message ... I want the data that is in the 1st cell of a row to be a variable, to use in a message box. Ok if the user has selected say, A17 Dim Lname, Msg, Style, Title, Help, Ctxt, Response, MyString Lname = Selection Msg = "Do you want to delete" + Lname + " ?" ' Define message. But if he's selected the whole row or say A17 to E17, this doesnt work. I can t seem to get info() or row() to work ? thanks if you can help ? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Brill, you guys are stars !
"Bob Phillips" wrote: How about Cells(Activecell.Row,1) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Archie" wrote in message ... I want the data that is in the 1st cell of a row to be a variable, to use in a message box. Ok if the user has selected say, A17 Dim Lname, Msg, Style, Title, Help, Ctxt, Response, MyString Lname = Selection Msg = "Do you want to delete" + Lname + " ?" ' Define message. But if he's selected the whole row or say A17 to E17, this doesnt work. I can t seem to get info() or row() to work ? thanks if you can help ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Instead of a negative number, I'd like to show zero... | Excel Worksheet Functions | |||
Cell color based upon cell value | Excel Discussion (Misc queries) | |||
cell color index comparison | New Users to Excel | |||
up to 7 functions? | Excel Worksheet Functions |