Thursday, December 17, 2020

SELECT PRINT AREA & HIDE WORKSHEET & UNHIDE WORKSHEET

 SELECT PRINT AREA

Sub printSelection()

Selection.PrintOut Copies:=1, Collate:=True

End Sub

HIDE WORKSHEET

Sub HideWorksheet()

Dim ws As Worksheet

For Each ws In ThisWorkbook.Worksheets

If ws.Name <> ThisWorkbook.ActiveSheet.Name Then

ws.Visible = xlSheetHidden

End If

Next ws

End Sub

UNHIDE WORKSHEET

Sub UnhideAllWorksheet()

Dim ws As Worksheet

For Each ws In ActiveWorkbook.Worksheets

ws.Visible = xlSheetVisible

Next ws

End Sub


No comments:

Post a Comment

THANKS FOR YOUR SUPPORT

Data copy paste on two another sheet with add row in google sheet by script

 function copyDataWithinWorkbook() {   var sourceSheetName = "Dashbord"; // Replace with the name of the source sheet   var target...