#1   Report Post  
Brett
 
Posts: n/a
Default Activate Cell

How do you write a macro to activate Cell(r,3) when the current active cell
is any other cell within the same row? How do you set the value of r to that
of the current active row?
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Brett,

Cells(Activecell.Row,3).Activate

or

Cells(Activecell.Row,3).Select

HTH,
Bernie
MS Excel MVP

"Brett" wrote in message
...
How do you write a macro to activate Cell(r,3) when the current active

cell
is any other cell within the same row? How do you set the value of r to

that
of the current active row?



  #3   Report Post  
George Nicholson
 
Posts: n/a
Default

r = ActiveCell.Row

--
George Nicholson

Remove 'Junk' from return address.


"Brett" wrote in message
...
How do you write a macro to activate Cell(r,3) when the current active
cell
is any other cell within the same row? How do you set the value of r to
that
of the current active row?



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
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 08:18 AM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 03:06 AM
How can I activate cell shading in a protected worksheet? unprotect cell shading Excel Discussion (Misc queries) 1 December 8th 04 08:31 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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

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"