Hi Pike,
For specific condition YES/NO, I have to perform similar actions in Sheet2 and Sheet 3. Because in the original file I am working on the only difference between Sheet 2 and Sheet 3 is in the values of G14 to G18 and G20 to G24.
That's why I have used Sheet Array -
Here is more detailed flow:
IF Sheet1, Cell A1 is "YES", Then Perform following similar actions in both Sheet 2 and Sheet 3.
- Copy Cell values (paste special values) from Sheet 2(G14:G18) to Sheet 2 (G29:G33) and Sheet 3(G14:G18) to Sheet 3 (G29:G33)
- Set values of Cell Sheet 2 (G14:G18) to 0 and Sheet 3 (G14:G18) to 0.
- Copy Cell values (paste special values) from Sheet 2 (H20:H24) to Sheet 2 (H29:H33) and Sheet 3 (H20:H24) to Sheet 3 (H29:H33)
- Set values of Cell Sheet 2 (H20:G24) to 0 and Sheet 3 (H20:G24) to 0.
- Hide Sheet 2 (Row 14 to 18) and Sheet 2 (Row 20 to 24). Similarly, Hide Sheet 3 (Row 14 to 18) and Sheet 3 (Row 20 to 24)
- Hide Sheet 2 (Columns G:H) and Sheet 3 (Columns G:H)
Else IF Sheet1, Cell A1 is "NO", Then:
In Sheet 2 and Sheet 3:
- Unhide Sheet 2 (Row 14 to 18) and Sheet 2 (Row 20 to 24). Similarly, Unhide Sheet 3 (Row 14 to 18) and Sheet 3 (Row 20 to 24)
- Unhide Sheet 2 (Columns G:H) and Sheet 3 (Columns G:H)
- Copy Cell values (paste special values) from Sheet 2 (G29:G33) to Sheet 2 (G14:G18) and Sheet 3 (G29:G33) to Sheet 3 (G14:G18)
- Copy Cell values (paste special values) from Sheet 2 (H29:H33) to Sheet 2(H20:H24) and Sheet 3 (H29:H33) to Sheet 3(H20:H24).
Also, while copying I want only values to be pasted. I mean I have to paste special for copying values and not the formulas behind that.
Bookmarks