Solved

Saving in the html format using excel macros

Posted on 1998-10-08
2
213 Views
Last Modified: 2010-04-30
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
0
Comment
Question by:sgarg
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
vmano earned 20 total points
ID: 1438866
To make your Microsoft Excel data available to users on your intranet or the World Wide Web, use the Internet Assistant add-in program to convert worksheet data or charts to HTML Web pages (Save As HTML command, File menu). Microsoft Excel doesn’t support using Visual Basic to save data as HTML documents.

vmano
0
 
LVL 3

Expert Comment

by:vmano
ID: 1438867
FYI: the vice versa of your question can be done.

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.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now