Hi there, I am trying to increase the efficiency of the macro. Can someone help on this? Thanks in advance!
VBA Code:
Sub Macro()
'
' Macro Macro"CrossMult_Validation")
'
Dim WS1 As Worksheet, WS2 As Worksheet, WS3 As Worksheet, i As Long, j As Long
Set WS1 = Sheets("llustration")
Set WS2 = Sheets("CrossMult")
Set WS3 = Sheets("Base")
For j = 1 To 39
WS3.Range("B8").Value = j
WS3.Calculate
WS2.Select
WS2.Calculate
Cells.Copy
Sheets.Add After:=Sheets(Sheets.Count)
Cells.Select
ActiveSheet.Paste
ActiveSheet.Range("AU5").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveSheet.Name = ActiveSheet.Range("AU5").Value
For i = 1 To 43
WS1.Range("K3").Value = i
WS1.Calculate
WS1.Range("G5", WS1.Range("G5").End(xlDown)).Copy
ActiveSheet.Cells(14, i + 1).PasteSpecial Paste:=xlPasteValues
ActiveSheet.Calculate
Next i
Next j
End Sub