Shevy
Shevy

Reputation: 57

How can I open a macro workbook with VBA?

I kind of renamed the personal macro workbook and copied it to the server for my teammates to access. When you manually open the macro workbook it only opens in VBA without showing an actual workbook, but when I try to do it with VBA, a physical workbook opens up.

Dim MyFolder As String
MyFolder = "file:///\\FPSFILES1\ReviewPricing\Macro Data\RP Macro Wrkbk.xlsb"
ActiveWorkbook.FollowHyperlink MyFolder

How can I get the workbook to open in VBA only so users don't see a physical book that they can close (which closes it in VBA too)?

Upvotes: 0

Views: 108

Answers (1)

Shevy
Shevy

Reputation: 57

You can use ActiveWindow.Visible = False

Upvotes: 1

Related Questions