Excel and VBA programming question
I need to write a quick dirty excel sheet with some vba to load some data...but I keep getting an error. Here is what I've done
------
Dim locType As String
.
.
.
Set locType = Worksheets("whateverwkst").Cells(locrow, loccol + 1).Value
------
When I run it, I get an error with "locType =" highlighted saying compile error: object required. What am I missing?
|