R
Rick Campbell
I've been using the following code in a workbook successfully:
Public Sub SMCMonthlyUpdateSFR()
Sheets("work").Select
Range("C3").Select
Dim Cell As Range
For Each Cell In Range("B3:B27")
City = Cell.Value
Call copy
Next
End Sub
Public Sub copy()
Selection.copy
Sheets(City).Select
I copied the code to another workbook with the same format, different data,
and now the City value is not being posted to Sheets(City).Select.
Can anyone tell me what the problem is?
TIA
Rick
Public Sub SMCMonthlyUpdateSFR()
Sheets("work").Select
Range("C3").Select
Dim Cell As Range
For Each Cell In Range("B3:B27")
City = Cell.Value
Call copy
Next
End Sub
Public Sub copy()
Selection.copy
Sheets(City).Select
I copied the code to another workbook with the same format, different data,
and now the City value is not being posted to Sheets(City).Select.
Can anyone tell me what the problem is?
TIA
Rick