The below code creates and opens a new Excel instance, but I couldn't see the opened Excel in my system despite setting the Visible
property to True
.
Could anyone help me with this?
Set Exobj = CreateObject("Excel.Application")
Set Newbook = Exobj.Workbooks.Add()
Exobj.Application.Visible = True
Newbook.SaveAs("C:\Users\ACER\Desktop\Project Folder\Test6.xlsx")
Exobj.Workbooks.Open("C:\Users\ACER\Desktop\Project Folder\Test6.xlsx")