Simple Macro's

N

Nathan

Hi,

I need some help creating 2 excel macros.

Macro 1: Convert an Excel spreadsheet held on an NT Server
from "normal" XLS format to CSV format via an Excel macro

Macro 2: Convert the CSV file back to XLS format via an
Excel macro

Any help would be great
Ta very much
Nath
 
B

Bob Greenblatt

Hi,

I need some help creating 2 excel macros.

Macro 1: Convert an Excel spreadsheet held on an NT Server
from "normal" XLS format to CSV format via an Excel macro

Macro 2: Convert the CSV file back to XLS format via an
Excel macro

Any help would be great
Ta very much
Nath
You can't actually convert the file, but you can save the file as a csv
file. Then I guess if you want you can delete the original.

To save as CSV: workbooks("whateveritsnameis.xls").saveas _
filename:=path\newname.csv fileformat:=xlcsv

To save the file as a normal Excel workbook: workbooks("name.csv").saveas _
filename:=path\newname.xls fileformat:=xlnormal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top