Dao Ha Quang
New Member
- Joined
- Apr 30, 2023
- Messages
- 20
- Office Version
- 2016
VBA Code:
Sub printsheet()
Select Case Worksheets("TT").Range("A1").Value
Case 1
Sheet1.PrintOut
Case 2
Sheet2.PrintOut
Case 3
Sheet3.PrintOut
Case 4
Sheet4.PrintOut
Case 5
Sheet5.PrintOut
Case Is > 5
Exit Sub
End Select
End Sub
But when I want to print many different sheets, I don't know how,
For example:
cell A1 value is "1,2,3" will print Sheet1, Sheet2 ,Sheet3
cell A1 value is "1,3,4,5" will print Sheet1, Sheet3, Sheet4 ,Sheet5
...
Help me