I am new to VBA and do not understand enough about Dim to even find the error.
- The following code should create an object variable that can store information about a Workbook object. What is wrong with the following code? Correct the error(s).
Dim wkbInventory as Workbook
wkbInventory = Application.Workbooks(“myWorkbook.xlsm”)
New to VBA and do not really understand/know enough about Dim to fix this.