dversloot1
Board Regular
- Joined
- Apr 3, 2013
- Messages
- 113
Hello,
I'm trying to create a range in vba where the row is equal to a match found in column B and the columns are CV, DF, DP, and DZ.
I've managed to get the Row number by doing the following:
Row = Application.WorksheetFunction.Match(Sheets("Sheet1").Range("A4"), Sheets("Data").Range("B1:B2000"), 0)
I'd like to get a Range based on the row number and the columns
Range = Sheets("Data").Range("CV" & Row),Sheets("Data").Range("DF" & Row), Sheets("Data").Range("DP" & Row), Sheets("Data").Range("DZ" & Row)
This was my poor attempt to get the range. Any suggestions for this?
I'm trying to create a range in vba where the row is equal to a match found in column B and the columns are CV, DF, DP, and DZ.
I've managed to get the Row number by doing the following:
Row = Application.WorksheetFunction.Match(Sheets("Sheet1").Range("A4"), Sheets("Data").Range("B1:B2000"), 0)
I'd like to get a Range based on the row number and the columns
Range = Sheets("Data").Range("CV" & Row),Sheets("Data").Range("DF" & Row), Sheets("Data").Range("DP" & Row), Sheets("Data").Range("DZ" & Row)
This was my poor attempt to get the range. Any suggestions for this?