Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to activate the cell in same row, column 1?

I want to write a macro that moves the active cell to the same row but
column 1, then does some stuff, and then exits leaving the active cell
in column 1 on the next row.

I have the "stuff" working but the user must select the cell in column 1
before invoking the macro. I would like to remove that requirement. So I
have to activate (or select? or what?) the cell in column 1 no matter
what column I am in now. How do I do that?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to activate the cell in same row, column 1?

Cells(ActiveCell.row,1).Select

--
Regards,
Tom Ogilvy


Sam Sieger wrote in message
. ..
I want to write a macro that moves the active cell to the same row but
column 1, then does some stuff, and then exits leaving the active cell
in column 1 on the next row.

I have the "stuff" working but the user must select the cell in column 1
before invoking the macro. I would like to remove that requirement. So I
have to activate (or select? or what?) the cell in column 1 no matter
what column I am in now. How do I do that?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default How to activate the cell in same row, column 1?

Sam

if you want to select the cell, you could use this:

Cells(Activecell.Row,1).Select

if you just need to operate on the cell you could use:

With Cells(Activecell.Row,1)
'your code
End With

but you may need to adjust your code to use this construct. You could post
the code and seek advice.

Regards

Trevor


"Sam Sieger" wrote in message
. ..
I want to write a macro that moves the active cell to the same row but
column 1, then does some stuff, and then exits leaving the active cell
in column 1 on the next row.

I have the "stuff" working but the user must select the cell in column 1
before invoking the macro. I would like to remove that requirement. So I
have to activate (or select? or what?) the cell in column 1 no matter
what column I am in now. How do I do that?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to activate the cell in same row, column 1?

Sam Sieger wrote:

Thanks very much Tom and Trevor. I knew it had to be simple. But I spent
over an hour with 2 different MS Press Office programming books and
couldn't find how to determine the row and column, although that seems
like a beginner topic. I just looked at the books again and sure enough,
they don't mention the "row" (or column) property.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to activate the cell in same row, column 1?

Hi Sam,

Sounds like you need a review & update area that users
selects.
Then in the change area cells allowed by user is different
then the review area as selcted by user then easy code can
be used to add the the new row of info. Use the original
Col 1 val then add Alpha or No in text format to keep in
order. I start at row 10 as my labels for list's

Hope this helps

Rgds,
George
Ingleside IL, USA


-----Original Message-----
I want to write a macro that moves the active cell to the

same row but
column 1, then does some stuff, and then exits leaving

the active cell
in column 1 on the next row.

I have the "stuff" working but the user must select the

cell in column 1
before invoking the macro. I would like to remove that

requirement. So I
have to activate (or select? or what?) the cell in column

1 no matter
what column I am in now. How do I do that?
.



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
activate cell varun Excel Worksheet Functions 1 February 5th 09 08:18 AM
activate column of URLs as hyperlinks [email protected] Excel Discussion (Misc queries) 3 November 7th 05 09:03 PM
Activate Cell Brett Excel Discussion (Misc queries) 2 March 29th 05 06:20 PM
Activate email column to hyperlinks DixieWins Excel Discussion (Misc queries) 2 February 3rd 05 08:09 PM
Activate Column after locating text in a row Smythe32 Excel Programming 1 July 17th 03 05:32 PM


All times are GMT +1. The time now is 04:47 PM.

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

About Us

"It's about Microsoft Excel"