I am using VBA to open an excel spreadsheet with the comand below,
Set objBook = objExcel.Workbooks.Open(tbFile)
to close the workbook, i use
objExcel.Workbooks.Close
however, if i have 3 active windows for MS excel, it will close all 3 windows after the statement above. I onli wan MS excel to close onli the "tbFile" tat i opened. how can tat be done?
thks
FT
Set objBook = objExcel.Workbooks.Open(tbFile)
to close the workbook, i use
objExcel.Workbooks.Close
however, if i have 3 active windows for MS excel, it will close all 3 windows after the statement above. I onli wan MS excel to close onli the "tbFile" tat i opened. how can tat be done?
thks
FT