madeofcarbon
New Member
- Joined
- Apr 4, 2011
- Messages
- 3
I'm getting an error for "could not find the specified object"
Basically I have labels with names A1-A18 and I want to put the values from a worksheet cells D4-D22
PartN = "130SM0003"
ExcelColumn = "D"
DosingColumn = "A"
DosingRow = 1
ExcelRow = 4
Do
CP.Controls(DosingColumn & DosingRow).Caption = Worksheets(PartN).Range(ExcelColumn & ExcelRow)
DosingRow = DosingRow + 1
ExcelRow = ExcelRow + 1
Loop Until DosingRow = 18
Any Help is appreciated.
Basically I have labels with names A1-A18 and I want to put the values from a worksheet cells D4-D22
PartN = "130SM0003"
ExcelColumn = "D"
DosingColumn = "A"
DosingRow = 1
ExcelRow = 4
Do
CP.Controls(DosingColumn & DosingRow).Caption = Worksheets(PartN).Range(ExcelColumn & ExcelRow)
DosingRow = DosingRow + 1
ExcelRow = ExcelRow + 1
Loop Until DosingRow = 18
Any Help is appreciated.