Assigning Name to new workbook
Then you need to save it with that filename, the filename only gets assigned
on a save.
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Dan" wrote in message
...
Want to assign a name to a worksheet based on user input.
DataFileName = Application.GetOpenFilename(filefilter:="Text or ASC
Files,
*.txt; *.asc", Title:="Select the Data File")
'Create A New WorkBook With One Worksheet
Workbooks.Add template:=xlWorksheet
Want the workbook name to be the same name as that opened by DataFileName
and not "Sheet1".
Thanks
|