J
Jean Pereira
I have created an expenses form using form fields which users can input up to
10 separate expenses complete with supporting info (1 expense per row) which
is manually typed in.
I now have to give users options to select on the form fields (of which
there are more than 24 in one field so can't use a normal combo box).
Created a form in VBA with a macro which popped up a box on entry to the
cell for users to select a team and expense codes, and coded it to put the
info into the relevant cell in a table. It works fine for the first row of
information but as soon as I enter a second row and choose different options,
it overwrites the info selected on row 1 (and I can see why it is doing that.
The code I have is as follows:
If OptBR.Value = True Then
ActiveDocument.FormFields("Team1").Result = "Business Recoveries"
ActiveDocument.FormFields("NomCodes1").Result = cboBRNomCodes
End If
How do I get it to work for rows 2-10?
I don't know how to program the info to go to the next row down or maybe at
the cursor location.
Thanks for any help or suggestions
Jean
10 separate expenses complete with supporting info (1 expense per row) which
is manually typed in.
I now have to give users options to select on the form fields (of which
there are more than 24 in one field so can't use a normal combo box).
Created a form in VBA with a macro which popped up a box on entry to the
cell for users to select a team and expense codes, and coded it to put the
info into the relevant cell in a table. It works fine for the first row of
information but as soon as I enter a second row and choose different options,
it overwrites the info selected on row 1 (and I can see why it is doing that.
The code I have is as follows:
If OptBR.Value = True Then
ActiveDocument.FormFields("Team1").Result = "Business Recoveries"
ActiveDocument.FormFields("NomCodes1").Result = cboBRNomCodes
End If
How do I get it to work for rows 2-10?
I don't know how to program the info to go to the next row down or maybe at
the cursor location.
Thanks for any help or suggestions
Jean