Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Windows On/Windows Off

I have an Excel workbook with a sheet that hold data that I want to update
from an MS SQL database. Normally the sheet is hidden, and I want unhide it
and place the recordset onto the sheet.

I have the logic to copy the downloaded recordsheet, but what I want to do
is open the workbook and retrieve a small dataset from the server without the
user seeing the new sheet.

My Excel help is rather limited on the company's PC, so if someone could
assist with providing a little code chunk I would greatly appreciate it.

In old (very old) versions of Lotus, a macro could run a WindowsOff Command
to shut of the Windows updating while the macro was running. Is there
something similar in VBA?

TIA.

Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Windows On/Windows Off

Not sure if this is what you are looking for, but you can switch off
Screen updating:

Application.ScreenUpdating = False

Hope that helps.

Remy Blaettler
www.collaboral.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Windows On/Windows Off

You must remember to set this back to TRUE once the macro has done its
work. Your error handler should also turn it back to TRUE.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Windows On/Windows Off

Thanks guys. It worked well.

"Pete" wrote:

You must remember to set this back to TRUE once the macro has done its
work. Your error handler should also turn it back to TRUE.

Pete


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
i want all windows in one excel frame (windows in taskbar) Subramanya Excel Discussion (Misc queries) 1 December 18th 09 03:14 PM
cannot open exel from windows xp in windows vista and visa versa lildiana New Users to Excel 4 February 25th 09 07:26 PM
can windows vista edit shared document from windows xp sasa Excel Worksheet Functions 1 January 9th 08 06:44 PM
Page breaks are different in Windows 2000 and Windows XP Bill Allen Excel Discussion (Misc queries) 1 November 23rd 05 04:42 PM
Use Windows Script to run Windows Explorer Search? Ian Elliott[_3_] Excel Programming 0 January 12th 04 05:03 PM


All times are GMT +1. The time now is 03:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"