ctouchberry
New Member
- Joined
- Dec 4, 2017
- Messages
- 40
Hello,
I'm debugging this as I go, and I'm getting a 424 error on the VLookup line.
I'm trying to load values from "04-Space" in the 2nd column into "JCX" in the 8th column, but only after checking to see if the 04-Space value is in the 1st column in 03-Floor.
The reason for the variables is that while the current data source only has a "Lower Level", other projects might have more than 1 floor, and I also need to account for differences such as "First Floor" and "1st Floor" in the variable.
This is the variable assignment code
This is the other code
Any thoughts? Thanks in advance!
I'm debugging this as I go, and I'm getting a 424 error on the VLookup line.
I'm trying to load values from "04-Space" in the 2nd column into "JCX" in the 8th column, but only after checking to see if the 04-Space value is in the 1st column in 03-Floor.
The reason for the variables is that while the current data source only has a "Lower Level", other projects might have more than 1 floor, and I also need to account for differences such as "First Floor" and "1st Floor" in the variable.
This is the variable assignment code
Code:
Dim FloorName As String
FloorName = "Lower Level"
This is the other code
Code:
TagRowCounter = 2
Do
Sheets("04-Space").Cells(TagRowCounter, 2).Value = FloorName
Application.WorksheetFunction.VLookup(FloorName, (Sheets("03-Floor").Cells(TagRowCounter, 1)), 1, False).Value
Sheets("JCX").Cells(TagRowCounter, 8).Value = Sheets("04-Space").Cells(TagRowCounter, 2).Value
TagRowCounter = TagRowCounter + 1
Loop Until Sheets("04-Space").Cells(TagRowCounter, 1) = False
Any thoughts? Thanks in advance!