How to pull cell values from Excel document into HTML table with VBA Macro with ForEach Loop -


i'm looking create excel macro vba generates html table weekly webpage update. table quite large , several of table cells link values. research has lead me far.

sub export_ab_table()    each row in rows      vala = ("a" & activecell.row)     valb = ("b" & activecell.row)     valc = ("c" & activecell.row)     vale = ("e" & activecell.row)     valg = ("g" & activecell.row)     vali = ("i" & activecell.row)      tablehtml = "<body><tbody>"     tablehtml = "<tr><td>"      vale      tablehtml = "</td><td>"      vala valb      tablehtml = "</td><td>"      val      tablehtml = "</td></tr>"     tablehtml = "</tbody></body>"  next table_cell end sub 

i'm wanting run through 6 column table and, each row, pull out several table cell values, inserting them html table row string. table export html doc. can export table, it's pulling values table each row can't find write-up on.

the current issue value reference. can advise or point me in direction of tutorial or resource close desired goal? appreciated.

i would't worry html conversion - let excel save take care of that.

for links create links in worksheet this:

activesheet.hyperlinks.add anchor:=selection, address:="google.com", _         texttodisplay:="google.com" 

to filter data, create new temporary worksheet, copy data want it, save html, delete it.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -