View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
anilsolipuram[_32_] anilsolipuram[_32_] is offline
external usenet poster
 
Posts: 1
Default Open a closed workbook with VBA


'opening workbook
Workbooks.Open Filename:="c:\book1.xls"

'your code

'your code


'below code for saving and closing the workbook
Workbooks("book1.xls").Activate
ActiveWorkbook.Save
ActiveWorkbook.Close


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=374909