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

  • Home
  • SEARCH
  • 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 8342165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:41:28+00:00 2026-06-09T05:41:28+00:00

I am trying to covert spread sheet with hundreds of image path to html

  • 0

I am trying to covert spread sheet with hundreds of image path to html pages. For example:

excel sheet
imageId    imagePath   

1           images/ima1
2           images/ima2
3           images/ima3
...         .........
...          ........

Are there faster ways to covert these images to html files instead of typing them 1 by 1?

The html files I need is like the following:

<img src=images/ima1 title='ima1' />
<img src=images/ima2 title='ima2' />
<img src=images/ima3 title='ima3' />

Thanks for the help.

  • 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-06-09T05:41:30+00:00Added an answer on June 9, 2026 at 5:41 am

    There are several ways you can do what you want.

    1 . On another sheet, create a formula that will take the information from the first sheet and produce the HTML you want.

    ="<img src=" & CHAR(34) & INDIRECT("Sheet1!B" &ROW()) & CHAR(34) & " title=" & CHAR(34) & INDIRECT("Sheet1!A" & ROW()) & " />"
    

    Assuming your data is on Sheet1, every row on your second sheet (with that formula in) will contain the html of the same row on Sheet1. (You’d need to adjust the sheet name and columns if there not the same)

    Doing this you can then copy and paste everything from the 2nd sheet.

    2 . Using a macro to generate the file.

        Public Sub GenerateHTML()
        Dim Handle As Integer
        Dim Sheet As Worksheet
        Dim Row As Integer
    
        Set Sheet = ThisWorkbook.ActiveSheet
        Row = 2
    
        Handle = FreeFile()
    
        Open "output.html" For Output As Handle
    
        Print #Handle, "<html>" & vbNewLine & "<head>" & vbNewLine & "<title>My Gallery...</title>" & vbNewLine & "</head>" & vbNewLine & "<body>"
    
        Do
            If Sheet.Cells(Row, 1) = "" Then
                Exit Do
            Else
                Print #Handle, "<img src=" & Chr(34) & Sheet.Cells(Row, 2) & Chr(34) & " title=" & Chr(34) & "ima" & Sheet.Cells(Row, 1) & Chr(34) & "/>"
                Row = Row + 1
            End If
        Loop
    
        Print #Handle, "</body>" & vbNewLine & "</html>"
    
        Close #Handle
    
        End Sub
    

    This example will create a html file in the same directory as the spreadsheet containing all the links. You’d need to adjust it to suit your needs as its probably not quite right.

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

Sidebar

Related Questions

I am trying to covert XML to HTML using XSLT. In this area I
Possible Duplicate: Reading Datetime value From Excel sheet I'm trying to read in a
I'm trying to convert from excel spreadsheet (.xls) to html via MS Excel 2010,
I'm trying convert all special chars into HTML safe entities on their way into
im trying to convert a date format into a new format in this example
I am trying to encrypt a string then covert it into a base64_encode string
I am using VS2005 C#, I am trying to import an excel filesheet into
I am trying to work out how to covert the script below from SQL
I'm trying to convert something from my excel spreadsheets into Javascript and came along
I am trying to covert a RAILS 3 project to use jquery. I am

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.