LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default DisplayAlerts & ScreenUpdating Properties Changing Unexpectedly

I have an Excel workbook that I am controlling via VBA through a module in
Microsoft Access. I have set the Excel DisplayAlerts and ScreenUpdating
properties to FALSE. However, whenever I use the select method
(.Range(A1).Select) the DisplayAlerts & ScreenUpdating properties
auotmatically change themselves back to TRUE. Does anybody know why this is
happening and how I can prevent it?

Dim appXL As Excel.Application
Set appXL = GetObject(, "Excel.Application")
appXL.Workbooks.Open ("D:\My Documents\My Safe
Documents\WorkingATB\horton.xls")
appXL.Application.DisplayAlerts = False
appXL.Application.ScreenUpdating = False

'If I use a watch expression both properties are still indicating FALSE at
this point.

appXL.Range("C2").Select
'If I use a watch expression both properties have just changed back to TRUE
after the select method is carried out.

Help please!
 
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
Cell changing it's properties jtpeters New Users to Excel 0 December 27th 05 10:09 PM
ScreenUpdating & DisplayAlerts cdb Excel Programming 5 February 4th 05 01:11 PM
Displayalerts and Screenupdating Hari[_3_] Excel Programming 4 June 12th 04 11:37 AM
DisplayAlerts property is not changing to False myoung Excel Programming 1 November 19th 03 04:48 PM
Changing the File Save Properties Kirk[_2_] Excel Programming 1 July 25th 03 07:20 PM


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