Excel VBA to save to specific folder (with current code generating filename)

RobExcel

workers,

I have this code at the moment;

Public Sub SaveAsA1()
    ActiveWorkbook.SaveAs Filename:=Range("P4").Value & ";" & Range("F6").Value & ";" & Range("R6").Value & ";" & Range("R4").Value
End Sub

Which i would like to modify to be saved in a certain filemap; \S31000265\Users$\NR4236\My Documents\TV-01-project\TestmapWeek9GOED. Been trying but it keeps overwriting the Filename-code. Hope you guys can help me out.

Karthick Gunasekaran
Public Sub SaveAsA1()
    ChDir ("C:\work\testout\") ' Directory you need to save the file as xlsm
    Filename = Range("P4").Value & ";" & Range("F6").Value & ";" & Range("R6").Value & ";" & Range("R4").Value
    ActiveWorkbook.SaveAs Filename:=Filename, FileFormat:=52
End Sub

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

save a filename into a specific folder

From Dev

VBA Save As Current Filename +01

From Dev

VBA Save As Current Filename +01

From Dev

Save Macro-enabled workbook as "filename" + Current Date using VBA

From Dev

How to Save Excel File in a specific Folder

From Dev

excel VBA ignore specific folder/file in directory

From Dev

VBA code to open all excel files in a folder

From Dev

VBA EXCEL CODE: Current Stock Price

From Dev

Check if folder exists and save two sheets in there VBA Excel

From Dev

Excel Outlook VBA Save Unread Emails to a Network Folder

From Dev

Excel VBA is skipping specific lines of code

From Dev

Save an Excel-File without Macros. Excel VBA Code

From Dev

Save Video to specific folder

From Dev

Generating a powerpoint presentation with VBA and Excel

From Dev

Excel VBA code to bulk convert rtf files in a folder to pdf files

From Dev

VBA - generating unique numbers in code

From Dev

how to change the filename to save in particular folder

From Dev

Excel VBA code is not supporting to save a PPT at custom location with custom name

From Dev

svcutil - generating code with specific version

From Dev

svcutil - generating code with specific version

From Dev

Excel VBA save screenshot

From Dev

How to save as with VBA in current location

From Dev

save images in specific sdcard folder

From Dev

Can I save into a specific folder?

From Dev

mutt: save message to specific folder

From Dev

Android - Save images in an specific folder

From Dev

save images in specific sdcard folder

From Dev

Remove asking what folder and filename to lookup vba

From Dev

VBA Save as PDF with Filename as Cell Value

Related Related

HotTag

Archive