Currently I am using a lengthy vb code but when Its playing, we can see all things on screen, can someone help to shorten it where it can performs things in background?
Code:
Sub New_TCS()
Range("O6").Value = Range("O6").Value + 1
For sh = 1 To Sheets.Count
Sheets(sh).Visible = -1
Next sh
'
' Macro1 Macro
'
'
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
'Modified 12/29/2018 2:34:32 AM EST
Application.ScreenUpdating = False
Dim i As Long
For i = 6 To 250 Step 4
Cells(i, 2).Resize(, 16).ClearContents
Next
Range("B9:B250").Select
Range("B250").Activate
Selection.EntireRow.Hidden = True
Range("B6").Select
Application.ScreenUpdating = True
ActiveSheet.Previous.Select
Range("C11:C27").Select
Selection.ClearContents
Range("B10").Select
ActiveSheet.Previous.Select
'Updateby Extendoffice 20161129
Dim chkBox As Excel.CheckBox
Application.ScreenUpdating = False
For Each chkBox In ActiveSheet.CheckBoxes
chkBox.Value = xlOff
Next chkBox
Application.ScreenUpdating = True
ActiveSheet.Previous.Select
For Each Pic In ActiveSheet.Pictures
If Not Intersect(Pic.TopLeftCell, Range("B4:D20")) Is Nothing Then
Pic.Delete
End If
Next Pic
ActiveSheet.Previous.Select
Range("C5:D32").Select
Selection.ClearContents
Range("F12:G13").Select
Selection.ClearContents
Range("I6:J7").Select
Selection.ClearContents
Range("F6:G7").Select
Selection.ClearContents
ActiveWindow.SmallScroll Down:=0
Range("D9").Select
ActiveSheet.Previous.Select
Range("J9:L10").Select
Selection.ClearContents
Range("J13:L14").Select
Selection.ClearContents
Range("F14:H15").Select
Selection.ClearContents
ActiveWindow.SmallScroll Down:=3
Range("F18:H19").Select
Selection.ClearContents
Range("K17").Select
ActiveWindow.SmallScroll Down:=-6
ActiveSheet.Previous.Select
'
Sheets(Array("New Style", "Garment Detail", "Picture", "Operations", _
"Machines Data", "Layout", "Report", "Summary", "Short")).Select
Sheets("Short").Activate
ActiveWindow.SelectedSheets.Visible = False
Sheets("Consolidated Report").Select
ActiveWindow.SelectedSheets.Visible = False
Range("F8").Select
End Sub
Last edited by a moderator: