B
bw
I'm using the following code to get the filename I want to open:
my2ndFileName = Application.GetOpenFilename("All Files (*.*), *.*")
where the actual filename is "C:\Downloads\LAS6014"
and I use the following to open the file:
Workbooks.OpenText Filename:=my2ndFileName,...
and because I don't now how to use the variable filename in the following, I hard code it
as follows:
Windows("LAS6014").Activate
So the question is: how do I activate the worksheet (or is it a workbook) for the variable
filename?
Thanks,
Bernie
my2ndFileName = Application.GetOpenFilename("All Files (*.*), *.*")
where the actual filename is "C:\Downloads\LAS6014"
and I use the following to open the file:
Workbooks.OpenText Filename:=my2ndFileName,...
and because I don't now how to use the variable filename in the following, I hard code it
as follows:
Windows("LAS6014").Activate
So the question is: how do I activate the worksheet (or is it a workbook) for the variable
filename?
Thanks,
Bernie