I'm pretty new to VBA. I'm creating a VBA script that generates data sheets. I think the best way to do this is with a series of VBA forms. We need to enter data for any number of test ports, so I was thinking that I would have a form (Form 1) that allowed the user to enter the number of test ports. When the user clicks the "Next" button on this first form it would open a port data form (Form 2) where they can enter data for that port. If there is only one port based on input in Form 1, then they hit a "Next" button that would take them to a confirmation form, if there were more than one port specified in Form 1 then another Form 2 form would open allowing entering port 2 data, etc. After information for all of the ports has been entered,there would be a confirmation form that allowed the user to cancel or submit the data from all forms.
The issues I'm coming up with is that A) i have no clue how to make an undetermined number of windows to open in this chain of 3+ forms, and B) I'm not totally clear on how to pass the data from one form to the next.
Any help on this would be appreciated.
Bookmarks