I've been playing around with vb lately, but am stumped at this problem.
fileToOpen = Application _
.GetOpenFilename("Excel Files (*.xls), *.xls")
Sheets("SCANNED").Select
Workbooks.Open Filename:="C:\Documents and settings\acoop\Desktop\report.xls" _
, Origin:=xlWindows
I want it to open an open file box, then you select an excel file and it imports the data. The problem is it is trying to select it from that C:: location, I want the location to be user specified. How do I do this?
fileToOpen = Application _
.GetOpenFilename("Excel Files (*.xls), *.xls")
Sheets("SCANNED").Select
Workbooks.Open Filename:="C:\Documents and settings\acoop\Desktop\report.xls" _
, Origin:=xlWindows
I want it to open an open file box, then you select an excel file and it imports the data. The problem is it is trying to select it from that C:: location, I want the location to be user specified. How do I do this?