Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
HELP! saving as xls in current folder
This code saves xls sheets as a csv files. BUT I do not know: 1. how to save them as xls. 2. how to save in the parent current folder For i = 1 To nr Nume = Cells(i + 2, 1) Worksheets(Nume).Activate Fisier = "C:\Back-up\Developers\Mario\" & Nume & ".csv" ActiveSheet.SaveAs Fisier, xlCSVWindows Worksheets("SA 200").Activate Next i End Sub Please help me -- drumerboy ------------------------------------------------------------------------ drumerboy's Profile: http://www.excelforum.com/member.php...o&userid=30468 View this thread: http://www.excelforum.com/showthread...hreadid=502431 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
HELP! saving as xls in current folder
Quickest way to find this type of info out is to record a macro that saves
the sheet where you want it saved. Then edit the macro and copy it and paste it into the code you have below. HTH "drumerboy" wrote: This code saves xls sheets as a csv files. BUT I do not know: 1. how to save them as xls. 2. how to save in the parent current folder For i = 1 To nr Nume = Cells(i + 2, 1) Worksheets(Nume).Activate Fisier = "C:\Back-up\Developers\Mario\" & Nume & ".csv" ActiveSheet.SaveAs Fisier, xlCSVWindows Worksheets("SA 200").Activate Next i End Sub Please help me -- drumerboy ------------------------------------------------------------------------ drumerboy's Profile: http://www.excelforum.com/member.php...o&userid=30468 View this thread: http://www.excelforum.com/showthread...hreadid=502431 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
use current file and folder name | Excel Discussion (Misc queries) | |||
Macro to open most current file in folder | Excel Discussion (Misc queries) | |||
reference to current file path/folder name? | Excel Programming | |||
Excel should open documents in the folder of the current file | Setting up and Configuration of Excel | |||
list Workbooks in Current Folder | Excel Programming |