What is the 'logical' reverse of the following open?
In other words, how do you close the current document AND the workbook. One would think it would be:
but the first line does what is expected, the second line is invalid. Just what am I missing here?
Also, how can you make it close the workbook and NOT prompt for rewriting permission after modifications are made?
Thanks
Code:
Set objExcel = GetObject("", "excel.application")
objExcel.Workbooks.open strFullPath
In other words, how do you close the current document AND the workbook. One would think it would be:
Code:
objExcel.ActiveWorkBook.Close
objExcel.Close
but the first line does what is expected, the second line is invalid. Just what am I missing here?
Also, how can you make it close the workbook and NOT prompt for rewriting permission after modifications are made?
Thanks