I am inexperienced with vba and have been using an if formula code to set print area on some tags on a worksheet. It has worked fine except I now need to drastically expand the number of tags. Is there another option I could use? Offset? Example follows and continues through the tags.
Code
If Range (A23) . Value>0 Then
ActiveSheet.PageSetup.PrintArea=A1:K25
If Range (A48) . Value>0 Then
ActiveSheet.PageSetup.PrintArea=A26:K50
Thank you for any time you can give me.
Mike Jaco