Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Macro VB Syntax Question

Status
Not open for further replies.

EUROWINGS

Technical User
Jan 7, 2003
1
DE
Hi guys,

I try to upgrade one of my macros, but I can not seem to find the right syntax.

The function, I like to automize, is analogue to pressing the "Pos 1" button.
I would like the active cell to be in the same row, column 1.
What would be the appropriate syntax within the macro?

Thanks a lot,

cheers,

Andreas
 
If I understand you requirements correctly, something like

Code:
Cells(ActiveCell.Row, 1).Activate

will do the trick

;-) If a man says something and there are no women there to hear him, is he still wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top