Gulvafslibning
New Member
- Joined
- Oct 18, 2013
- Messages
- 8
Hello there,
I hope you can help me with this, im pretty much a newb at this.
I got 2 open Excel files, and I would like to press a button in 'Excel file 1' and then it saves the 'Excel file 2' with a name from a cell in 'Excel file 1' automatically (when pressing the button).
Right now I use this:
But then it only saves the Excel file I have the macro in of course.
I would like it to save another open excel file called: "C:\Users\Alexander\Desktop\Jensen\Fakturaer\000-000Fakturaskabelon.xlsx"
I dont want to merge these 2 files into 1. That's why I'd like to make a button for it.
Is this possible?
I hope there are some bright guys out there!
Thanks in advance!
Regards,
Alexander Ross
I hope you can help me with this, im pretty much a newb at this.
I got 2 open Excel files, and I would like to press a button in 'Excel file 1' and then it saves the 'Excel file 2' with a name from a cell in 'Excel file 1' automatically (when pressing the button).
Right now I use this:
Code:
Sub SaveAsNameInCells()
ActiveWorkbook.SaveAs "C:\Users\Alexander\Desktop\Jensen\Fakturaer\" & Range("C3").Value, 52
End Sub
But then it only saves the Excel file I have the macro in of course.
I would like it to save another open excel file called: "C:\Users\Alexander\Desktop\Jensen\Fakturaer\000-000Fakturaskabelon.xlsx"
I dont want to merge these 2 files into 1. That's why I'd like to make a button for it.
Is this possible?
I hope there are some bright guys out there!
Thanks in advance!
Regards,
Alexander Ross