Problem with a variable
Posted by Travis on August 16, 2001 6:32 AM
I am having a hard time setting the variable Rows1
Sub GatherData2()
Dim Title1, Rows1
Title1 = Range("p23")
'Range("p23") currently states Secondary Molding
If Title1 = "Secondary Molding" Then Rows1 = 14
Range("Q19").Select
ActiveCell.FormulaR1C1 = Title1
Range("T19").Select
ActiveCell.FormulaR1C1 = Rows1
'This code is just to check my variables before
I continue with the macro. I can not get Rows1
to equal 14.
End Sub