Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel automation and Shared Workbooks

Hello,
I have recently attempted to fix a problem with Excel processes not going
away when run through automation, by replacing calls to
Excel.Workbooks.Open(filename)
with
Excel.Workbooks.Add(filename)
I have now run into a problem using this code for a shared workbook, because
a "Save As..." dialog pops up when the call to Add is made.
Can anyone explain the fundamental differences between Add and Open methods
on the Workbooks object, and how that interacts with the sharing of a
Workbook?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Excel automation and Shared Workbooks




workbooks.add("c:\path\file.xls") creates a NEW (unsaved) workbook
based on the template specified by filename.

how do you want to share a workbook that hasn't been saved?


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


VadimT wrote :

Hello,
I have recently attempted to fix a problem with Excel processes not
going away when run through automation, by replacing calls to
Excel.Workbooks.Open(filename)
with
Excel.Workbooks.Add(filename)
I have now run into a problem using this code for a shared workbook,
because a "Save As..." dialog pops up when the call to Add is made.
Can anyone explain the fundamental differences between Add and Open
methods on the Workbooks object, and how that interacts with the
sharing of a Workbook?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Excel automation and Shared Workbooks

Hi

I agree with keepITcool's suggestion.
We need to save the new created workbook first, so that we can share the
workbook.
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

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
Shared Workbooks-shared headers and footers Sherry New Users to Excel 1 June 13th 08 03:59 PM
suddenly my excel workbooks are "shared workbooks" Maggie's mom Excel Discussion (Misc queries) 1 August 28th 05 09:20 PM
Automation / Shared Add-in VS.NET Luis Simões Excel Programming 1 March 3rd 05 07:39 PM
Automation of Excel to perform simple tasks on many workbooks. admin4office Excel Programming 4 February 15th 05 12:49 AM
Excel automation and shared workbooks Matthew L. Butcher Excel Programming 0 December 4th 03 02:58 AM


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