I'm a new member but I've been finding answers to my questions often on this board. Thank you for all your help!
I have some VBA code that runs through each row of a table and copies the content of the row into a form then prints the form to PDF (thereby making a PDF for each record in the table. This works great if I want to print everything, but I also need to allow the user to filter and then just process what is visible.
I'd like to be able to assign the visibility of the current row to a boolean variable.
Here's a simplified version of my code. I feel like I'm so close yet so far away.
I have some VBA code that runs through each row of a table and copies the content of the row into a form then prints the form to PDF (thereby making a PDF for each record in the table. This works great if I want to print everything, but I also need to allow the user to filter and then just process what is visible.
I'd like to be able to assign the visibility of the current row to a boolean variable.
Here's a simplified version of my code. I feel like I'm so close yet so far away.
VBA Code:
Dim Vis as Boolean
For x = 1 to RowCount
Vis = Worksheets("Control Center").ListObjects("AllData").Rows(x).SpecialCells(xlCellTypeVisible)
If Vis = True Then
'process the data and print'
End If
Next