fpskidmark
Board Regular
- Joined
- Sep 11, 2009
- Messages
- 139
Hi All,
I'm getting a "Compile Error" msg - "Expected Sub, Function, or Property" for this "DT" value
Thanks,
FP
I'm getting a "Compile Error" msg - "Expected Sub, Function, or Property" for this "DT" value
PHP:
[If Cells(36, n) = "Vicki " Then DT:/PHP]
Can someone please help me?
[PHP]
Dim t As String
Dim LC As Long
Dim DT As String
DT = Workbooks("RCO Schedule.xls").Sheets("2011").Range("c3:gb3").Find(t).Column
Jan = Workbooks("RCO Schedule.xls").Sheets("2011").Cells(7, DT)
VicM = Workbooks("RCO Schedule.xls").Sheets("2011").Cells(9, DT)
VicG = Workbooks("RCO Schedule.xls").Sheets("2011").Cells(38, DT)
Cor = Workbooks("RCO Schedule.xls").Sheets("2011").Cells(32, DT)
MsgBox (DT)
Sheets("OT").Select
On Error Resume Next
LC = Cells(37, Columns.Count).End(xlToLeft).Column
For n = 3 To LC Step 1
t = Cells(3, n).Value
If Cells(2, n) = "" Then GoTo July
If Cells(36, n) = "Vicki " Then DT: VicM.FormulaR1C1 _
= VicM & " - " & Workbooks("RCO Schedule Worksheet.xls").Sheets("OT").Cells(5, n): VicM.Font.ColorIndex = 9
Thanks,
FP