Identifying rows selected by filter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Scenario:
Our course details are held in a single spreadsheet with a column
identifying the Curriculum Area. For each Curriculum Area we need to publish
data from this spreadsheet on our intranet.
Requirement:
Filter this spreadsheet by Curriculum Area and code a macro to write the
HTML <table> code for all selected rows to a text file.
Problem:
How do I identify programatically the rows selected by the filter so that I
can read through these rows only and write <tr> <td> lines for each one?

Thanks for time,
Fred
 
Fred,

You want to use special cells method-

Dim rng as Range

For each rng in Range(Curriculum Area).SpecialCells(xlCellTypeVisible)
do something with rng
Next rng
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top