Excel size

User avatar
agibsonsw
SilverLounger
Posts: 2403
Joined: 05 Feb 2010, 22:21
Location: London ENGLAND

Excel size

Post by agibsonsw »

Hello. Excel 2003.

Someone has about 20 sheets which each cover about 100 rows and columns containing many formulas. There is also some VBA.

Does a size of 8MB seem big for such a file?

Separate question: What is the instruction that makes a certain cell occupy the top left corner of the viewable area? I've forgotten it :scratch:

Thanks, Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

User avatar
StuartR
Administrator
Posts: 12629
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Excel size

Post by StuartR »

8MBytes sounds pretty big to me

Try clearing all the rows below and to the right of your data to see if that helps.

To scroll cell (5,6) to the top left of the screen try the following Visual Basic...

ActiveWindow.ScrollIntoView Left:=Cells(5,6).Left, Top:=Cells(5,6).top, Width := 100, Height:= 100
StuartR


User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Excel size

Post by HansV »

That file size is not surprising.

To display cell Q37 in the upper left corner:

Application.Goto Reference:=Range("Q37"), Scroll:=True

This even works if the cell is on on another worksheet. The sheet will be activated if necessary:

Application.Goto Reference:=Worksheets("OtherSheet").Range("Q37"), Scroll:=True
Best wishes,
Hans

User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Excel size

Post by HansV »

StuartR wrote:8MBytes sounds pretty big to me
:blackteeth:
Best wishes,
Hans

User avatar
agibsonsw
SilverLounger
Posts: 2403
Joined: 05 Feb 2010, 22:21
Location: London ENGLAND

Re: Excel size

Post by agibsonsw »

Thanks both. Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.