Save an excel file base on cells' value

Panoos64

Well-known Member
Joined
Mar 1, 2014
Messages
882
Hi to all of you!
I would much appreciate if you could provide me support, so that to write a VBA code, which should save the file, using as name the texts in cells "B3 & "B8" from file C:\Desktop\My folder\Inventory Card.xlsx into folder C:\Desktop\Path2\Inventory List
Therefore that, the file name which is in cells "B3" & "B8" have variable texts each one.
Thank you all in advance
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi there

Maybe try:

VBA Code:
Sub sve()
    Dim Path        As String
    Dim filename    As String
    Path = "C:\Desktop\Path2\Inventory List\"
    filename = Range("B3").Value & " " & Range("B8").Value
    ActiveWorkbook.SaveAs filename:=Path & filename & ".xls", FileFormat:=xlNormal
End Sub
 
Upvote 0
No problem...glad we could assist and thanks for the feedback...😎
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top