G
Guest
I have a public procedure where I cycle through my labels and pass the
caption to a spreadsheet.
The thing I'm having trouble with is that the label names on the form I'm
referencing are "lblField1", "lblField2", etc, and I want to cycle through
them with a For Next loop.
I’m using [Forms]![frmUserCount]![lblField1], as in:
".Cells(I, K).Value = [Forms]![frmUserCount]![lblField1].Caption"
Instead of having a line like this for every label I want to reference (and
there are 46 of them), I want to use a For Next loop. Can anyone help with
this?
Thanks in advance,
Clint
caption to a spreadsheet.
The thing I'm having trouble with is that the label names on the form I'm
referencing are "lblField1", "lblField2", etc, and I want to cycle through
them with a For Next loop.
I’m using [Forms]![frmUserCount]![lblField1], as in:
".Cells(I, K).Value = [Forms]![frmUserCount]![lblField1].Caption"
Instead of having a line like this for every label I want to reference (and
there are 46 of them), I want to use a For Next loop. Can anyone help with
this?
Thanks in advance,
Clint