MistakesWereMade
Board Regular
- Joined
- May 22, 2019
- Messages
- 103
I currently open a workbook using code written on a notepad file. However, the userform that pops up has disabled features it seems... For one, my userform has a combobox that allows me to open other excel files when selected, but when using the notepad, this feature is disabled. Instead, I must manually reveal the workbook that I would like hidden, after which the userform opened file will then pop up. It seems like the notepad suppresses all excel files from opening when I would like for the active workbook to stay closed and any newly opened ones to show. If I open the workbook manually without the notepad file, the userform works the way I want it to.
Any ideas on what could be happening and how to fix this?
My code in my notepad file is listed below.
Any ideas on what could be happening and how to fix this?
My code in my notepad file is listed below.
Code:
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = False
Set objWorkbook = objExcel.Workbooks.Open("C:\Users\MyUser\Desktop\Folder\Operations.xlsm")