![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 1
|
i'd like to move the active cell to a specified column on the same row within a macro
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Kissimmee, Florida
Posts: 384
|
CurRw = Active Cell.row
NewRng = "H" & CurRw Range(NewRng).Select Change the H to whatever column you need
__________________
Hope This Helps. Sean. Digest of Homes WinXP, XL XP |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
Hi,
Try this:- Range("H" & ActiveCell.Row).Select You'll need to change the H to the column you want the cursor to move to. HTH, Dan |
|
|
|
|
|
#4 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Yet another way to pluck a duck:
Code:
Cells(ActiveCell.Row, Columns("b").Column).Activate
_________________ Cheers, NateO [ This Message was edited by: NateO on 2002-05-01 09:42 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|