Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default ActiveCell to top left cell of a sheet

Is there a way for the ActiveCell to be at the top left of a worksheet?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ActiveCell to top left cell of a sheet

Tom,

Range("A1").Select
works for me.

-----Original Message-----
Is there a way for the ActiveCell to be at the top left

of a worksheet?


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default ActiveCell to top left cell of a sheet

Try one of these

Sub CtrlHome()
'ActiveWindow.VisibleRange.Resize(1, 1).Select
SendKeys "^{home}"
End Sub

"Tom Atkisson" wrote in message
...
Is there a way for the ActiveCell to be at the top left of a worksheet?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default ActiveCell to top left cell of a sheet

Tom,

Try the following:

Sub ActiveCellToTopLeft()
ActiveWindow.ScrollColumn = ActiveCell.Column
ActiveWindow.ScrollRow = ActiveCell.Row
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com


"Tom Atkisson" wrote in message
...
Is there a way for the ActiveCell to be at the top left of a worksheet?




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
How to use ActiveCell to mean a particular cell? Jo[_2_] Excel Worksheet Functions 3 October 4th 07 09:38 PM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Align cell contents on left side of sheet? wannabe68 New Users to Excel 1 August 6th 07 09:03 PM
Which cell was the activecell before a keypress excelent Excel Worksheet Functions 2 May 26th 06 01:45 PM
Activecell, not for cell,but for range? mturner Excel Discussion (Misc queries) 1 January 24th 06 04:55 PM


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