1st cell of a row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 ?
 
does this help

Sub msgboxdel()
MsgBox "Do you want to delete " & ActiveCell.Address
End Sub
 
How about

Cells(Activecell.Row,1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Brill, you guys are stars !

Bob Phillips said:
How about

Cells(Activecell.Row,1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top