Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
When I run this macro it opens the workbook I've just saved, how can I stop it from opening after the macro has ran. Sub SaveOneSheet() Dim Sht As Worksheet Const PATH As String = "C:\test\" Set Sht = ActiveWorkbook.Sheets("Test1") Sht.Select Sht.Copy ActiveWorkbook.SaveAs Filename:= _ PATH & Sht.Range("G1") & ".xls", FileFormat:=xlNormal End Sub Thanks in advance Dave |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stop Book1 Opening | Setting up and Configuration of Excel | |||
How do I stop blank workbook from opening when opening an existing | Excel Discussion (Misc queries) | |||
stop opening a blank workbook at start up | Excel Discussion (Misc queries) | |||
How to make the opening of a workbook conditional upon the opening of another workbook | Excel Programming | |||
How to make opening of workbook conditional of opening of another workbook | Excel Programming |