George Too
Registered User.
- Local time
- Today, 01:50
- Joined
- Aug 12, 2002
- Messages
- 198
I have this piece of code:
-----------------------------------
Dim Row, C As Integer
Dim Column As String
Row = 22
Column = Chr(67)
C = 0
While Counter <> 9
For Each Control In Me.childfrmMstrRollInfo.Controls
.Range(Column & Row).Select
.ActiveCell = Control.Value
C = C + 1
Column = Chr(67 + C)
Next Control
Wend
-----------------------------------
It is populating a spreadsheet based on a subform in my main form. The problem is in the red line the second time the loop runs. It generates the '438' error "Object doesn't support this property or method." Again, it gets the value to the first cell (C22) but won't do it for the second (D22).
Any workarounds would be greatly appreciated.
Thanks for your time,
George
-----------------------------------
Dim Row, C As Integer
Dim Column As String
Row = 22
Column = Chr(67)
C = 0
While Counter <> 9
For Each Control In Me.childfrmMstrRollInfo.Controls
.Range(Column & Row).Select
.ActiveCell = Control.Value
C = C + 1
Column = Chr(67 + C)
Next Control
Wend
-----------------------------------
It is populating a spreadsheet based on a subform in my main form. The problem is in the red line the second time the loop runs. It generates the '438' error "Object doesn't support this property or method." Again, it gets the value to the first cell (C22) but won't do it for the second (D22).
Any workarounds would be greatly appreciated.
Thanks for your time,
George