With the folowwing code, I try to walk trough the filterd rows of a table:
Sub GetConfigDataLists()
Dim xRange As Range
Set xRange = Sheets("config").ListObjects("config_table").DataBodyRange
xRange.AutoFilter 1, "Lists"
xRange.Select
For Each Row In xRange
'Try to read in a variable
MsgBox (row)
Next Row
End Sub
The Table is a simple table with the name config_tabel
<tbody>
</tbody>
When I filterd and run the code, all Fields are displayed in the messagebox...
How can I read the filterd cells : Field and Value...
Sub GetConfigDataLists()
Dim xRange As Range
Set xRange = Sheets("config").ListObjects("config_table").DataBodyRange
xRange.AutoFilter 1, "Lists"
xRange.Select
For Each Row In xRange
'Try to read in a variable
MsgBox (row)
Next Row
End Sub
The Table is a simple table with the name config_tabel
Parameter | Field | Value |
Lists | Risks | Top5Risks |
Lists | Issues | Top5Issues |
Startup | Sheet | Progress |
Location | save | c:\temp |
<tbody>
</tbody>
When I filterd and run the code, all Fields are displayed in the messagebox...
How can I read the filterd cells : Field and Value...