PC Review


Reply
Thread Tools Rate Thread

Automatically OPENing (GetObject) and Closing EXCEL via VB calls

 
 
Brian E McNamee
Guest
Posts: n/a
 
      27th May 2010
What is the calling sequence from VB to "Set gobjEXCELWorkBook =
GetObject(pzExcelFileName)" and "gobjEXCELWorkBook.Close" an EXCEL
Application witout having to answer dialogs about "Different Format" or "Save
Changes". This consumes a lot of time and repetitiveness when you're going
through 50 - 100 worbooks!
--
Brian McNamee
 
Reply With Quote
 
 
 
 
Brian E McNamee
Guest
Posts: n/a
 
      28th May 2010
xp,

That did the trick! Thank you. I'll spend the time saved wisely,
--
Brian McNamee


"xp" wrote:

> Try:
>
> To your Excel object append: Application.DisplayAlerts = False
>
> Also, to close without a message, save first then use:
> oWorkbook.Close SaveChanges:=False
>
> HTH
>
> "Brian E McNamee" wrote:
>
> > What is the calling sequence from VB to "Set gobjEXCELWorkBook =
> > GetObject(pzExcelFileName)" and "gobjEXCELWorkBook.Close" an EXCEL
> > Application witout having to answer dialogs about "Different Format" or "Save
> > Changes". This consumes a lot of time and repetitiveness when you're going
> > through 50 - 100 worbooks!
> > --
> > Brian McNamee

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Automatically OPENing (GetObject) and Closing EXCEL via VB calls xp Microsoft Excel Programming 0 27th May 2010 10:02 PM
Run macro automatically upon opening or closing document Munchkin Microsoft Excel Programming 1 8th Jun 2009 03:27 PM
Macro for Opening Reuters, Opening Excel File, Closing Excel File Tsp245 Microsoft Excel Programming 2 14th Aug 2008 07:24 PM
pls give a solution for CD-Rom is opening and closing automatically sudhan Windows XP Networking 2 1st Jan 2006 03:53 PM
Successive calls to ResourceManager.GetObject Brandon Bloom Microsoft Dot NET Framework 0 3rd Mar 2005 07:42 PM


Features
 

Advertising
 

Newsgroups
 


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