View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Auto Excel workbook close: save= false during an auto subrouti

for the object variable? right after you open a workbook, it becomes the
activeworkbook.

Const Path As String = <your path
Dim WkBk As Workbook

< your code

Workbooks.Open Filename:=Path
Set WkBk = ActiveWorkbook

<your code

WkBk.Close SaveChanges:=False (or True)





"roumi" wrote:


Have a similar problem and will appreciate if you post the complete code


--
roumi
------------------------------------------------------------------------
roumi's Profile: http://www.excelforum.com/member.php...o&userid=24140
View this thread: http://www.excelforum.com/showthread...hreadid=377308