I have the following code that creates links to a Summary sheet on multiple CS Sheets. The number of CS sheets is generated from one CS master sheet using another code module.The code works but is very slow when creating multiple CS sheets. How could I make it more efficient?
Sub CSrefs()
'
' Adds links from Summary Sheet to CS Sheets:
Dim i As Integer
Dim iOffset As Integer
intCount = ActiveWorkbook.Sheets.Count 'Find total number of workbook sheets
intCS1_Index = Sheets("CS1").Index 'CS1 Sheet index
intCSCount = intCount - (intCS1_Index - 1) 'Find total number of CS sheets
NonCSSheets = intCount - intCSCount 'Find total number of Non-CS sheets
For i = 1 To intCSCount 'number of sheets
iOffset = i + NonCSSheets
Sheets("CS" & i).Select
Range("B3").Select
ActiveCell.Formula = "=SUMMARY!E" & iOffset
Range("A6").Select 'Adds hyperlink to Summery Sheet
ActiveCell.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:="Summary!A" & iOffset, TextToDisplay:="Go to Summary Sheet"
Range("F8").Select
ActiveCell.Formula = "=SUMMARY!F" & iOffset
Range("D8").Select
ActiveCell.Formula = "=SUMMARY!G" & iOffset
Range("B12").Select
ActiveCell.Formula = "=SUMMARY!H" & iOffset
Range("K19").Select
ActiveCell.Formula = "=SUMMARY!S" & iOffset
Range("K49").Select
ActiveCell.Formula = "=SUMMARY!T" & iOffset
Range("K79").Select
ActiveCell.Formula = "=SUMMARY!U" & iOffset
Range("K109").Select
ActiveCell.Formula = "=SUMMARY!V" & iOffset
Range("K139").Select
ActiveCell.Formula = "=SUMMARY!W" & iOffset
Range("K169").Select
ActiveCell.Formula = "=SUMMARY!X" & iOffset
Range("B8").Select
Next i
Sheets("Summary").Select
End Sub