I have written a macro that copies worksheets from a workbook to a new workbook and saves it.
I want the new workbook to save to the same network file folder as the original.
It seems like everytime i run the macro it saves in a different location. Sometimes in the correct location. Often saves it to My Documents on my hard drive.
How do I write the macro to identify the file path of the current document and then save the new workbook to the same location?
I want the new workbook to save to the same network file folder as the original.
It seems like everytime i run the macro it saves in a different location. Sometimes in the correct location. Often saves it to My Documents on my hard drive.
How do I write the macro to identify the file path of the current document and then save the new workbook to the same location?