sgarg
asked on
Saving in the html format using excel macros
Here is the problem.
I have a excel spreadsheet with data. I want to save this file into html format using macros. Does anybody know the macro to save the file into the html format.
thanks
I have a excel spreadsheet with data. I want to save this file into html format using macros. Does anybody know the macro to save the file into the html format.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To open HTML documents in Microsoft Excel with Visual Basic, use the Open method. You don’t need to specify the file converter to use, because the Open method tries each available file converter until it succeeds. The following example opens an HTML document on a local drive.
Workbooks.Open "C:\My Documents\Product List.htm"
Similarly, you can specify a URL to open a file located on an HTTP server, as follows.
Workbooks.Open "http://myserver.com/default.htm"
You can also get data from an intranet site or from HTTP, FTP, or Gopher sites on the World Wide Web by running a Web query. To run a Web query, point to Get External Data on the Data menu, and then click Run Web Query.