Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Disabling messages from Project

I run a macro from Excel to extract information from MS
Project files and write to a Word document. The MS
Project files contain macros and a reference to a common
MS Project Resource sheet.

How do I disable the Macro and Open Resource Pool dialog
boxes from appearing for each MS Project file that I open?

I have:
1) Application.ScreenUpdating = False at the start of the
macro which disables the screen updates in Excel
2) wdAPP.Visible = False after I start Word to disable
screen updates there
3) prAPP.Visible = False & prAPP.DisplayAlerts = False
when I start MS Project

I still get 2 prompts for each MS Project file I open.
Am I missing something?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default Disabling messages from Project

Try this;
Application.DisplayAlerts = False
Set it back to "True" once your routine is finished.

--
Regards;
Rob
------------------------------------------------------------------------
"Taras" wrote in message
...
I run a macro from Excel to extract information from MS
Project files and write to a Word document. The MS
Project files contain macros and a reference to a common
MS Project Resource sheet.

How do I disable the Macro and Open Resource Pool dialog
boxes from appearing for each MS Project file that I open?

I have:
1) Application.ScreenUpdating = False at the start of the
macro which disables the screen updates in Excel
2) wdAPP.Visible = False after I start Word to disable
screen updates there
3) prAPP.Visible = False & prAPP.DisplayAlerts = False
when I start MS Project

I still get 2 prompts for each MS Project file I open.
Am I missing something?

TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Disabling messages from Project

I already had the following code in place
Set prAPP = New MSProject.Application
prAPP.Visible = False
prAPP.DisplayAlerts = False
sMPP = Worksheets("Sheet1").Cells(nPRow, 12) & ".MPP"
sPNM = sPath & sMPP
prAPP.FileOpen sPNM, ReadOnly

Adding another Application.DisplayAlerts = False prior to
the open did not help.

Any other suggestions?

-----Original Message-----
Try this;
Application.DisplayAlerts = False
Set it back to "True" once your routine is finished.

--
Regards;
Rob
---------------------------------------------------------

---------------
"Taras" wrote in message
...
I run a macro from Excel to extract information from MS
Project files and write to a Word document. The MS
Project files contain macros and a reference to a

common
MS Project Resource sheet.

How do I disable the Macro and Open Resource Pool

dialog
boxes from appearing for each MS Project file that I

open?

I have:
1) Application.ScreenUpdating = False at the start of

the
macro which disables the screen updates in Excel
2) wdAPP.Visible = False after I start Word to disable
screen updates there
3) prAPP.Visible = False & prAPP.DisplayAlerts = False
when I start MS Project

I still get 2 prompts for each MS Project file I open.
Am I missing something?

TIA



.

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
Excel hyperlinks - disabling warning messages Larry Links and Linking in Excel 1 July 29th 07 02:22 AM
Excell error "Can't find Project or Library" Project VBAProject Lost in Excel Excel Worksheet Functions 0 April 12th 07 04:42 PM
How to convert MS Project to MS Excel. I don't have MS Project. Jane Excel Discussion (Misc queries) 1 February 20th 06 10:01 PM
Pop up messages Manos[_2_] Excel Programming 3 November 2nd 03 07:49 PM
Messages not available Otto Moehrbach[_5_] Excel Programming 1 September 30th 03 07:21 PM


All times are GMT +1. The time now is 11:14 PM.

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"