#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default 1st cell of a row

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default 1st cell of a row

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default 1st cell of a row

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


All times are GMT +1. The time now is 01:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"