excelnewbielearning
New Member
- Joined
- Sep 15, 2017
- Messages
- 1
Hello there,
I recently started learning excel and am having some troubles, I was hoping someone could help me.
I can't fully divulge all the field names and information but to give a simple idea what I essentially have is,
A user inputs data into cells on a user form, these cells are then recorded onto another excel sheet via the use of a macro - user clicks 'book' and the booking information is logged in the second sheet. However, my problem is that in the user form the table cell has more than one values separated by commas. I need to record each of those values with the same booking information from the other cells.
Please see below for clarification:
Tab 1 User form -
[TABLE="width: 250"]
<tbody>[TR]
[TD]Booking name:[/TD]
[TD]Booking 1[/TD]
[/TR]
[TR]
[TD]Tables required:[/TD]
[TD]101, 106, 108[/TD]
[/TR]
</tbody>[/TABLE]
I need the information above to appear in the second tab as below -
Tab 2 Booking entries -
[TABLE="width: 250"]
<tbody>[TR]
[TD]Booking 1[/TD]
[TD]101[/TD]
[/TR]
[TR]
[TD]Booking 1[/TD]
[TD]106[/TD]
[/TR]
[TR]
[TD]Booking 1[/TD]
[TD]108[/TD]
[/TR]
</tbody>[/TABLE]
I have tried using a macro and copy and pasting the fields from the user's form onto the booking entries form 3 times and then removing the values on each row. But that only appears to work if I only ever have 3 values in my table required field.
Please help if possible. Thank you.
Best wishes,
I recently started learning excel and am having some troubles, I was hoping someone could help me.
I can't fully divulge all the field names and information but to give a simple idea what I essentially have is,
A user inputs data into cells on a user form, these cells are then recorded onto another excel sheet via the use of a macro - user clicks 'book' and the booking information is logged in the second sheet. However, my problem is that in the user form the table cell has more than one values separated by commas. I need to record each of those values with the same booking information from the other cells.
Please see below for clarification:
Tab 1 User form -
[TABLE="width: 250"]
<tbody>[TR]
[TD]Booking name:[/TD]
[TD]Booking 1[/TD]
[/TR]
[TR]
[TD]Tables required:[/TD]
[TD]101, 106, 108[/TD]
[/TR]
</tbody>[/TABLE]
I need the information above to appear in the second tab as below -
Tab 2 Booking entries -
[TABLE="width: 250"]
<tbody>[TR]
[TD]Booking 1[/TD]
[TD]101[/TD]
[/TR]
[TR]
[TD]Booking 1[/TD]
[TD]106[/TD]
[/TR]
[TR]
[TD]Booking 1[/TD]
[TD]108[/TD]
[/TR]
</tbody>[/TABLE]
I have tried using a macro and copy and pasting the fields from the user's form onto the booking entries form 3 times and then removing the values on each row. But that only appears to work if I only ever have 3 values in my table required field.
Please help if possible. Thank you.
Best wishes,