create ranges based on labels & textboxes by userform

Omran Y

New Member
Joined
Jul 17, 2023
Messages
42
Office Version
  1. 2013
Platform
  1. Windows
Hello
I want creating ranges when I fill userform . I have label1:lable6 and textbox1:textbox6
the label1 :label4 should be in firs row as header and textbox1: textbox4 should be under headers (label1:label4) when copy to sheet and the label 5:label6 should be in column C under textbox3(the name) when copy to sheet .
and the textbox5:textbox6 should be in column D for adjacent cell in column C based on ( label 5:label6)


1.xlsm
ABCDEF
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
EMPLOYEES

when I fill userform
Z.JPG

then should be in sheet like this
1.xlsm
ABCD
1START DATELAST DATENAMEFIRST BALANCE
201/01/202331/01/2023OMAR ALI OMAR-20,000.00
3SALARY3,000.00
4NET AMOUNT-17,000.00
EMPLOYEES


and if I add another name
X.JPG

and the result in sheet should copy to the bottom like this
1.xlsm
ABCD
1START DATELAST DATENAMEFIRST BALANCE
201/01/202331/01/2023OMAR ALI OMAR-20,000.00
3SALARY3,000.00
4NET AMOUNT-17,000.00
5
6
7START DATELAST DATENAMEFIRST BALANCE
801/01/202331/01/2023AHMED OMAR ALI-2,000.00
9SALARY3,000.00
10NET AMOUNT1,000.00
EMPLOYEES

I hope this pictures and details are clear .
thanks in advance.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,842
Messages
6,127,230
Members
449,371
Latest member
strawberrish

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top