Goto the top of a spreadsheet???

OrangeHead

New Member
Joined
Jul 13, 2011
Messages
2
This might sound simple but I can't find an answer ANYWHERE!!! :( I am writing a macro that pastes information to various locations in a spreadsheet.

What I would like to do is programmatically tell the macro to goto the firstrow on the sheet within the active column. The best I have found so far is this ActiveWindow.VisibleRange(1).Select which does almost exactly what I want -- The only problem is it specifies column 1 rather than the column I happen to be in. Can anyone help with this?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Code:
Activesheet.Cells(1, activecell.column).Select

Note that it is almost always unnecessary to select anything in code.
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top