Jeff Johnson
New Member
- Joined
- May 20, 2015
- Messages
- 9
Hi All,
My workbook has a sheet named "Plots" where data from all the other worksheets is summarized. On the Plots sheet in a given cell I want a formula that references another sheet (name is variable). Here's what I have so far:
I just want to replace 'CER0938A_11 140805'! with a reference to each worksheet. This should be simple right? Thanks in advance.
My workbook has a sheet named "Plots" where data from all the other worksheets is summarized. On the Plots sheet in a given cell I want a formula that references another sheet (name is variable). Here's what I have so far:
Code:
Sub PopulatePlots()
'
' Gather data from all sheets, put it on "Plots" sheet
'
'
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
If sht.Name <> "Plots" And sht.Name <> "Template" Then
Sheets("Plots").Select
Range("B3").Formula = "=MIN('CER0938A_11 140805'!R[8]C[14]:R[9]C[15])"
Next
End Sub
I just want to replace 'CER0938A_11 140805'! with a reference to each worksheet. This should be simple right? Thanks in advance.