Hi all.
I am hoping somebody can help me, i have spent days trying to work out what i am doing wrong but still no success. All i am wanting to do is create a new .CSV file from a sheet in my workbook. This is the last part of my macro. I want the new file to be put in the same working folder as my workbook.
When i use variables for the file name and path i get 'Runtime error 1004 method SaveAs of object_workbook failed.' If i hardcode in the path and filename it works fine. I need to use variables since the file name and path will vary.
Hoping somebody can help Thanks
Here is my code:
Bookmarks