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 |
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 |