Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JHB JHB is offline
external usenet poster
 
Posts: 30
Default Excell 2000 macro will not open file!

Hi:

I have a "simple" macro that just wont do what I want. It looks like
this::

Sub opening()

'
' Macro1 Macro
' Macro recorded 10/13/2012 by John Baker
'

'
Workbooks.Open(Filename:="C:\TASC\Apps
\XLSXConvert.xls").RunAutoMacros Which _
:=xlAutoOpen



Workbooks.Open(Filename:="C:\TASC\Apps\TASC-
DriverDataCollect.xls"). _
RunAutoMacros Which:=xlAuto_Open

End Sub

The simple objective is that by opening this macro the end user can
cause the two spreadsheetes (which include their own macros)
automatically.

The first sheet is set to close itself when it has done its work, and
the second closes the application. They both work fine when the
spreadsheets are opened individually, but in this macro after the
first one has completed its work the execution stops. Note that the
first one does NOT close the application, although the second one
does.

Anyone got any suggetions? The objective is simple .. one spreadsheet
opening causes two spreadsheets to do their thing.

Best

John Baker
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Excell 2000 macro will not open file!

Try opening the 2nd file from the 1st file when the 1st file has done
its task.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
when i open an Excell file 3 workbooks open.Why? Iain40 Excel Discussion (Misc queries) 2 February 3rd 09 05:04 PM
Open 2000 file attachments in Excel 2000 Judy[_2_] Excel Discussion (Misc queries) 2 September 20th 07 10:20 PM
How to open MS Excell 2007 Sheet in MS Excell 2000??? Alek Luchnikov New Users to Excel 1 March 22nd 07 04:40 PM
Hyperlink in Excel 2000 can't open bookmarked Word 2000 file DCheslock Excel Discussion (Misc queries) 1 May 5th 05 10:46 PM
Excell 2000 - Cannot open file RustyC Excel Discussion (Misc queries) 2 March 4th 05 08:55 PM


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