Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default I know this may be a crazy question but....

I have code where i have to activate the sheet in order for the code
correctly. Now, I dont want that sheet to be displayed because it slows down
the macro. Is there a way to either Activate the sheet and not have it
displayed or another way to disable screen updating besides
Application.ScreenUpdating = False cause that doesnt work

thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default I know this may be a crazy question but....

There are very few things that depend on the activesheet.

I think I'd try to rewrite the code that depends on the activesheet.

And I've never seen .screenupdating fail. I have seen it turn on when I used
something out of the Analysis toolpak (IIRC). But since I can't control that,
I'll just add another .screenupdating = false to freeze it when the ATP call
finishes.



CLamar wrote:

I have code where i have to activate the sheet in order for the code
correctly. Now, I dont want that sheet to be displayed because it slows down
the macro. Is there a way to either Activate the sheet and not have it
displayed or another way to disable screen updating besides
Application.ScreenUpdating = False cause that doesnt work

thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default I know this may be a crazy question but....

Do you have any suggestions for not having the sheet active in order to
proceed with the code. When I dont make the sheet active it gives me the
error "Method 'Range' of object Global failed". Here is an example of the
code:
The error occurs at the line beginning with newfbr when i comment out the
Sheets("Plotdata").Activate line

Do Until oldfbr LastCellVRH1x
Sheets("AreaSolver").Range(PS.Cells(8, 1), PS.Cells(36, 6)).Clear
'Sheets("PlotData").Activate
With Sheets("PlotData")
top = oldfbr
newfbr = Range("F" & oldfbr & "").End(xlDown).Row
bottom = newfbr
oldfbr = newfbr + 3
SerialName = Sheets("Sheet4").Range("E" & i & "").Value
ChartTitle = Sheets("Sheet4").Range("C" & i & "").Value
TestMethod = Sheets("TestTable").Range("I" & i + 1 & "").Value
AreaLabel = Sheets("Sheet4").Range("E" & i & "").Value & " / " & _
Sheets("Sheet4").Range("D" & i & "").Value

"Dave Peterson" wrote:

There are very few things that depend on the activesheet.

I think I'd try to rewrite the code that depends on the activesheet.

And I've never seen .screenupdating fail. I have seen it turn on when I used
something out of the Analysis toolpak (IIRC). But since I can't control that,
I'll just add another .screenupdating = false to freeze it when the ATP call
finishes.



CLamar wrote:

I have code where i have to activate the sheet in order for the code
correctly. Now, I dont want that sheet to be displayed because it slows down
the macro. Is there a way to either Activate the sheet and not have it
displayed or another way to disable screen updating besides
Application.ScreenUpdating = False cause that doesnt work

thanks


--

Dave Peterson

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
Possibly a loaded question, but I think mileslit Excel Discussion (Misc queries) 1 September 10th 05 01:18 AM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Newbie With A Question Michael Excel Worksheet Functions 0 July 28th 05 11:50 PM
Anybody Help with previous question Anthony Excel Discussion (Misc queries) 1 July 26th 05 01:26 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM


All times are GMT +1. The time now is 12:42 AM.

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"