Help with code to open spreadsheet

S

SAC

I need some vb, vba, or vbscript code to help in opening an excel
spreadsheet and then doing a file save as <filename>.xls

Currently it's a <filename>.xls file, but it's really a web page. Manually
I open it in Excel and then do a file save as <filename>.xls and then I can
import it into SQL Server. So I want to automate the opening and file
saving process.

Thanks for any help you might be able to give.
 
S

SAC

Thanks, Bob.

I really appreciate it!


Bob Phillips said:
Set wb = Workbooks.Open("C:\test\abc.xls")
'do stuff
wb.SaveAs Filename:="C:\test\backup\mynewfile.xls"

--
__________________________________
HTH

Bob
 

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