Hi All,
I have a userform that is used to collect something like 75 pieces of data, which are then sent to the main form with code like this:
After the data is sent to the form, I have some more code which then parses it out into 5 individual named ranges for easier import into an Access database. It's working pretty well. So well, in fact, that now Management wants to expand it to include more data points. I am dreading the grief I will go through, because I will have to offset each and every cell value manually in the code. Is there a way to reference the named range in the code, so at least I can keep the destination fields clear in my mind while doing the job?
I have a userform that is used to collect something like 75 pieces of data, which are then sent to the main form with code like this:
Code:
ws.Cells(lRow, 4).Value = Me.txtRep1
etc.
After the data is sent to the form, I have some more code which then parses it out into 5 individual named ranges for easier import into an Access database. It's working pretty well. So well, in fact, that now Management wants to expand it to include more data points. I am dreading the grief I will go through, because I will have to offset each and every cell value manually in the code. Is there a way to reference the named range in the code, so at least I can keep the destination fields clear in my mind while doing the job?