Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ADK ADK is offline
external usenet poster
 
Posts: 89
Default Goto column A of the ActiveCell

If someone had cell D6, I want the macro to goto to cell A6

If someone had cell T56, I want the macro to goto to cell A56

-ADK


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,316
Default Goto column A of the ActiveCell

The following will do that for you:

Sub GoToA()

Dim lngRow As Long

lngRow = ActiveCell.Row
Range("A" & lngRow).Select

End Sub

--
Kevin Backmann


"ADK" wrote:

If someone had cell D6, I want the macro to goto to cell A6

If someone had cell T56, I want the macro to goto to cell A56

-ADK



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Goto column A of the ActiveCell

Not sure what test you want to carry out with your if statement but

Range("A" & Activecell.Row).select

will take you to column A on the same row as the selected cell.


ADK wrote:
If someone had cell D6, I want the macro to goto to cell A6

If someone had cell T56, I want the macro to goto to cell A56

-ADK


  #4   Report Post  
Posted to microsoft.public.excel.programming
ADK ADK is offline
external usenet poster
 
Posts: 89
Default Goto column A of the ActiveCell

thanks, this will work

"Alan" wrote in message
ups.com...
Not sure what test you want to carry out with your if statement but

Range("A" & Activecell.Row).select

will take you to column A on the same row as the selected cell.


ADK wrote:
If someone had cell D6, I want the macro to goto to cell A6

If someone had cell T56, I want the macro to goto to cell A56

-ADK




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
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Using ActiveCell to specify a column DavidW[_15_] Excel Programming 5 August 22nd 06 09:11 PM
Application.Goto Reference:="ActiveCell.Value"??? Whats wrong?? [email protected] Excel Programming 13 July 12th 06 11:47 AM
If one column is full, goto the next column Biff Excel Programming 6 March 8th 06 03:49 AM
How to set ActiveCell to a new column? Carl[_7_] Excel Programming 5 March 17th 05 10:07 PM


All times are GMT +1. The time now is 05:59 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"