Hi:
I'm trying to use this standard bit of code:
But I'm getting the error message:
object variable with block variable not set
Any idea what might be going wrong? [Note that when I am entering the code, "msoFileDialogFilePicker" does not pop up from the References Library. Is it possible my system is missing this operation? If so, how would I add it to my resources? I'm a newbie to VBA -- please be kind!]
Arv
I'm trying to use this standard bit of code:
VBA Code:
Dim fd As Office.FileDialog
Dim strFile As String
Set fd = Application.FileDialog(msoFileDialogFilePicker)
With fd
.AllowMultiSelect = False
If .Show = -1 Then
strFile = .SelectedItems(1)
End If
End With
But I'm getting the error message:
object variable with block variable not set
Any idea what might be going wrong? [Note that when I am entering the code, "msoFileDialogFilePicker" does not pop up from the References Library. Is it possible my system is missing this operation? If so, how would I add it to my resources? I'm a newbie to VBA -- please be kind!]
Arv