Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default excel vbe scroll range - how to save?

Tools - Macro - VBE
VBE, Properties Window, Scroll Area
Ok, I set Scroll Area A1:B164, save and return to Excel spreadsheet.
Data entry works fine, cursor jumps from A1 - B1, and down to line 2, A2 -
B2, etc
Save spreadsheet, and exit.
When loading same spreadsheet, the ScrollArea is blank.
How do I save this feature?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default excel vbe scroll range - how to save?

Sorry Bob I thought that the scroll area saved with the worksheet but it
needs to be set when the book is opened... To the thisworkbook module (double
click on it in project explorer) add

Private Sub Workbook_Open()
Sheet1.ScrollArea = "A1:B164" 'or whetever sheet you need
End Sub

Macros must be enabled for this to work or the project digitally signed...
--
HTH...

Jim Thomlinson


"Bob" wrote:

Tools - Macro - VBE
VBE, Properties Window, Scroll Area
Ok, I set Scroll Area A1:B164, save and return to Excel spreadsheet.
Data entry works fine, cursor jumps from A1 - B1, and down to line 2, A2 -
B2, etc
Save spreadsheet, and exit.
When loading same spreadsheet, the ScrollArea is blank.
How do I save this feature?

  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default excel vbe scroll range - how to save?

That did it.
One minor addition. Suppose I want just one more cell active, to enter new
report date manually? Is it possible to have two ranges? c2 and a4:b164 or
even a1, a4:b164

If not thanks a lot, scroll and save a1.b164 work well enough

"Jim Thomlinson" wrote:

Sorry Bob I thought that the scroll area saved with the worksheet but it
needs to be set when the book is opened... To the thisworkbook module (double
click on it in project explorer) add

Private Sub Workbook_Open()
Sheet1.ScrollArea = "A1:B164" 'or whetever sheet you need
End Sub

Macros must be enabled for this to work or the project digitally signed...
--
HTH...

Jim Thomlinson


"Bob" wrote:

Tools - Macro - VBE
VBE, Properties Window, Scroll Area
Ok, I set Scroll Area A1:B164, save and return to Excel spreadsheet.
Data entry works fine, cursor jumps from A1 - B1, and down to line 2, A2 -
B2, etc
Save spreadsheet, and exit.
When loading same spreadsheet, the ScrollArea is blank.
How do I save this feature?

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 do I correct scroll bar range? Tom Freeman[_2_] Excel Discussion (Misc queries) 3 December 16th 09 04:32 PM
How do I conceal the unused range from the scroll bar? Eric Colvin Excel Discussion (Misc queries) 1 August 18th 08 11:34 AM
Scroll Bar Range Tanker Mike Excel Discussion (Misc queries) 1 February 1st 05 06:29 AM
what to do if the save as scroll down menu is not responding? marc-andre michaud Excel Discussion (Misc queries) 2 February 1st 05 03:11 AM
How to save an Excel range into an Access Database Belinda Excel Programming 2 March 7th 04 04:26 AM


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