I am creating a macro for excel in VB and it isnt working correctly. When workbook A is opened it needs to open workbook B as read only and then hide it... it is used to hold the macros for all users.
Here is what I have:
--------------------------
Sub OpenNoShowReadOnly()
Workbooks.Open "J:\Collections\High Usage\HUT WorkFolder\RawData\Macro.xls" = ReadOnly
Windows("Macro.xls").Visible = False
End Sub
---------------------------
Here is what I have:
--------------------------
Sub OpenNoShowReadOnly()
Workbooks.Open "J:\Collections\High Usage\HUT WorkFolder\RawData\Macro.xls" = ReadOnly
Windows("Macro.xls").Visible = False
End Sub
---------------------------