The macro below is copied from a Windows VBA tutorial.
Doesn't work on my Mac.
Can anyone sort out the syntax problem?
It should open a dialogue box to locate the file that should be opened.
I want to open a second workbook when a first WB is opened.
Thanks.
Sub Open_Workbook_Dialogue()
Dim wb As Variant
wb = Application.GetOpenFilename(FileFilter:=”Excel Files,*.xl*;*.xm*”)
If wb <> False Then
Workbooks.Open FileName:=wb
End If
End Sub
Doesn't work on my Mac.
Can anyone sort out the syntax problem?
It should open a dialogue box to locate the file that should be opened.
I want to open a second workbook when a first WB is opened.
Thanks.
Sub Open_Workbook_Dialogue()
Dim wb As Variant
wb = Application.GetOpenFilename(FileFilter:=”Excel Files,*.xl*;*.xm*”)
If wb <> False Then
Workbooks.Open FileName:=wb
End If
End Sub