Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to execute the following given macro from the current
workbook. The macro opens the workbook "2148.xls" and waits there. It does not proceed to run the macro "NextDay" as given in line number 3. However, if I execute the entire macro step by step from Visual Basic (using F8) it works fine. What could be the problem? What is the solution.: Workbooks.Open Filename:="C:\Data\GLIF\2148.xls" Windows("2148.xls").Activate Application.Run "2148.xls!NextDay" ActiveWorkbook.Save ActiveWorkbook.Close NextDay macro is as under: Sub NextDay() Sheets("Summary").Select Columns("H:H").Select Application.CutCopyMode = False Selection.Insert Shift:=xlToRight Range("C6:C45").Select Range("C45").Activate Selection.Copy Range("H6").Select ActiveSheet.Paste ActiveWorkbook.Save End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help:Running a macro in one excel workbook from another workbook | Setting up and Configuration of Excel | |||
Find Macro across workbook | Excel Worksheet Functions | |||
Macro to open print window and set to print entire workbook | Excel Discussion (Misc queries) | |||
Macro Help In Excel | Excel Discussion (Misc queries) | |||
workbook macro help | Excel Discussion (Misc queries) |