I have an automatically excel (excel A) that copy and paste information from another excel (excel B). I already control if the excelB exist or not.
I want to do this:
If "workbookExcelBisopen" Then 'what can i put inside the if
'What can i put here for make the code work
Else
Set ExcelB = Application.Workbooks.Open(".xlsx", False, True)
End if
Sheets("Sheet1excelB").Select
The main problem I get is if the workbook is already open, it display a message saying "ExcelB is already open. Do you want to save the changes?". I want to avoid this kind of message.
Thank you into advance.