M
Michael
Hi everyone,
Say I have this VBA piece of code:
filename = Range("A1")
On Error Resume Next
Set WBook = Workbooks(filename)
On Error GoTo 0
If WBook Is Nothing Then
Workbooks.Open filename:=filename
End If
Here, I am tell VBA to open a filename specified in cell A1.
Now, say that filename/workbook has several wroksheets and one of them
is called "ABC". I want VBA to open that workbook at that worksheet
(i.e. ABC). What else should I add to the above code?
Thanks,
Mike
Say I have this VBA piece of code:
filename = Range("A1")
On Error Resume Next
Set WBook = Workbooks(filename)
On Error GoTo 0
If WBook Is Nothing Then
Workbooks.Open filename:=filename
End If
Here, I am tell VBA to open a filename specified in cell A1.
Now, say that filename/workbook has several wroksheets and one of them
is called "ABC". I want VBA to open that workbook at that worksheet
(i.e. ABC). What else should I add to the above code?
Thanks,
Mike