Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 257983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:08:34+00:00 2026-05-11T22:08:34+00:00

I have an Excel report with a bunch of sheets, each with a table

  • 0

I have an Excel report with a bunch of sheets, each with a table of data. I need to make a button that will create one html page containing the tables, one after the other.

I don’t know much about html, so my first approach was to have a macro that creates another worksheet with the tables on it, and then saves that sheet as html using ActiveWorkbook.PublishObjects. The problem is that I don’t want the column widths to be the same for all of the tables in the exported file.

I think the solution is to set the column widths on each sheet and export the sheets to html individually, then append them all into one html file. Is there any easy way to accomplish this, or will I need to write code to go into each html file and pick out the relevant sections?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:08:34+00:00Added an answer on May 11, 2026 at 10:08 pm

    In the June 2001 issue of VBPJ, I wrote a column that would probably serve as a good starting point for you. It showed how to iterate through a Range, converting it to an HTML table, which was then put on the clipboard for pasting into something else (eg, FrontPage). The article:

    Ask the VB Pro, June 2001: Soup Up Office VBA

    Specifically, take a look at the second Q/A pair, and Listing 2 which shows a RangeToHtml() function. My code basically strips out all the formatting – that was the goal, for me. I don’t know enough about the Excel object model to say for sure, but I’d imagine you could embed width= attributes in the ‘s if that’s important.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have the below requirement. We will have to create an excel/pdf report and
I need to create a PDF Report using iTextSharp. I have an excel sample,which
I have an Access Database that outputs a report in Excel format. The report
I have an access 2007 Database that outputs a report in excel format, the
I have a Excel Workbook that I use as a report template. I change
Is that even possible!?! I have a bunch of legacy reports that I need
I have report in Excel that I user gave me and wants the same
I'm trying to create a dynamic report in Excel. I have lots of sales
We have a report generator. Daily, it writes its data into a excel file.
Scenario is to generate an excel report that has ~ 150 data columns. Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.