Hi gurus,
I am starting to construct a bit of code that will filter criteria in a table on one sheet, copy the filtered data, and paste it to a new workbook that that user specifies the name of. So far I have this:
Everything works fine up to line 26:![]()
Please Login or Register to view this content.
I am using explicit references to the source workbook and worksheet for now. I know that the "sFileName" variable stores the path and file name the user specifies, but how can I reference the newly created workbook if using the variable "sFileName" isn't allowed? How do I go about activating the new spreadsheet since the name will be provided by the user and is not explicit? I suppose I could reference the workbook index but I would prefer a more fool proof method that directly references the new workbook the user just provided.![]()
Please Login or Register to view this content.
Thanks for the help,
Magicbob007
Bookmarks