Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Sub Macro1() Workbooks.Open Filename:= _ "G:\XXX\Example.xls" Application.Run ("Example.xls!SecondMacro") Workbooks(“Example.xls”).Save ActiveWindow.Close End Sub - Piku -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry
That still generates the same error message whent the line "Workbooks(€œExample.xls€).Save" is executed...... ----- pikus wrote: ---- Try this Sub Macro1( Workbooks.Open Filename:= "G:\XXX\Example.xls Application.Run ("Example.xls!SecondMacro" Workbooks(€œExample.xls€).Sav ActiveWindow.Clos End Su - Piku -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can not save if this code is in the workbook | Excel Discussion (Misc queries) | |||
[Q] Save As throws type mismatch error in control's code? | Excel Discussion (Misc queries) | |||
VBA code gets lost from workbook if I paste in new data and save??? | Excel Programming | |||
Automatically run VB code on workbook save event | Excel Programming | |||
VBA code to save gives error 1004??? | Excel Programming |