Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Making macro functions invisible?

I am using VBA to hide and unhide certainworksheets based
on a user's input in a combobox. what is the VB function
for turning off the screen so that the user doesn't see
flashes as these worksheets hide and unhide?

Any help is greatly appreciated.
Thanks,
Dan Winterton
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Making macro functions invisible?

Application.Screenupdating = False
and True at the end.

HTH. Best wishes Harald

"Dan Winterton" skrev i melding
...
I am using VBA to hide and unhide certainworksheets based
on a user's input in a combobox. what is the VB function
for turning off the screen so that the user doesn't see
flashes as these worksheets hide and unhide?

Any help is greatly appreciated.
Thanks,
Dan Winterton



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Making macro functions invisible?

Hi Dan,

Application.Screenupdating = False

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Dan Winterton" wrote in message
...
I am using VBA to hide and unhide certainworksheets based
on a user's input in a combobox. what is the VB function
for turning off the screen so that the user doesn't see
flashes as these worksheets hide and unhide?

Any help is greatly appreciated.
Thanks,
Dan Winterton



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Making macro functions invisible?

Hi Dan,

Application.ScreenUpdating = False

'Your Code

Application.ScreenUpddating = True

However, It is rarely necessary to make selections and making repeated sheet
selections will cause the flashing that you have observed.

---
Regards,
Norman



"Dan Winterton" wrote in message
...
I am using VBA to hide and unhide certainworksheets based
on a user's input in a combobox. what is the VB function
for turning off the screen so that the user doesn't see
flashes as these worksheets hide and unhide?

Any help is greatly appreciated.
Thanks,
Dan Winterton



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Making macro functions invisible?

application.screenupdating = false
application.screenupdating = true

Always make sure that you turn it back on at the end of the procedure. It is
also a good idea to include it in error handling code (if you have any).
Don't turn it on and off multiple times withing the same set of function
calls or the screen will flash when it is turned on.

Hope this helps...

"Dan Winterton" wrote:

I am using VBA to hide and unhide certainworksheets based
on a user's input in a combobox. what is the VB function
for turning off the screen so that the user doesn't see
flashes as these worksheets hide and unhide?

Any help is greatly appreciated.
Thanks,
Dan Winterton



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
Making a 0 invisible with a formiula marvin Excel Discussion (Misc queries) 3 September 18th 09 08:00 PM
Making Border of Frozen Panes Invisible Carl Excel Discussion (Misc queries) 4 December 20th 06 02:22 PM
invisible macro commands? Julieeeee Excel Worksheet Functions 4 October 24th 05 11:21 PM
Formulas and making info invisible Katherine[_6_] Excel Programming 4 August 16th 04 07:41 PM
Invisible macro? Cavemanz Excel Programming 4 July 28th 04 01:43 PM


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