Hi, can someone please help me create a macro that automatically adjusts the print area of a worksheet based on a formula-driven cell value?
For example, say cells B2:K5 are full of vlookups that return percentage values while column A calculates the sum of the percentages (A2=sum(B2:K2). A1:K1 have column headers.
If I sort the worksheet by column A in decending order, I want the print area to only cover those rows where the value in column A is greater than 5%.
If for example, rows A2 and A3 are greater than 5%, I want the print area to include A1 to K3. I hope this makes sense. Thank you in advance for any help!
Bookmarks