Hey guys. I haven't done VBA for years - but am trying to help out a colleague.
We currently have a sheet with approx. 50 pages. Different businesses want to see different pages printing.
Today.. someone goes through and manually works out which pages to print.
I have the below sample in Sheet1 Range A1:D5.
Lets assume I am running VBA for Business B.
I would like to
1) loop through each row in range and identify if Column "C" (businessB) has a value of "YES".
2) if the value is "YES" then I want to Set the TAB NAME (Column A) to print
Alternatively I might run the macro for BusinessA or C so am looking for appropriate column referencing.
Can someone please help out with VBA code? Thanks
Print Page BusinessA BusinessB BusinessC
Page 1 Yes Yes
page 2 Yes
page 3 Yes
page 4 Yes
We currently have a sheet with approx. 50 pages. Different businesses want to see different pages printing.
Today.. someone goes through and manually works out which pages to print.
I have the below sample in Sheet1 Range A1:D5.
Lets assume I am running VBA for Business B.
I would like to
1) loop through each row in range and identify if Column "C" (businessB) has a value of "YES".
2) if the value is "YES" then I want to Set the TAB NAME (Column A) to print
Alternatively I might run the macro for BusinessA or C so am looking for appropriate column referencing.
Can someone please help out with VBA code? Thanks
Print Page BusinessA BusinessB BusinessC
Page 1 Yes Yes
page 2 Yes
page 3 Yes
page 4 Yes