create array with multiple textbox and copy to specific range based on selected combobox

tubrak

Board Regular
Joined
May 30, 2021
Messages
216
Office Version
  1. 2019
Platform
  1. Windows
hi expert

I have many table in sheet1 what I want when select the name from combobox should match with col B and when fill the data in all the textboxes should fill the table based on name

about the column F the calculation should be like this the first row contain the values . balance= debit - credit and the next row should be balance = last balance +debit - credit for all tables
note: every time I create new tables in the bottom so I want the code is dynamic
original data in sheet1
1.xlsx
ABCDEFG
2
3ITEMNAMEINVOICE NODEITCREDITBALANCE
4TUBR
5TUBR
6TUBR
7TUBR
8
9
10
11ITEMNAMEINVOICE NODEITCREDITBALANCE
12TRIB
13TRIB
14TRIB
15TRIB
16
17
18
19ITEMNAMEINVOICE NODEITCREDITBALANCE
20TRANIB
21TRANIB
22TRANIB
SHEET1

userform

the expected result when select specific name
1.xlsx
ABCDEF
3ITEMNAMEINVOICE NODEITCREDITBALANCE
41TUBRAS-1001005050
52TUBRAS-10110010050
63TUBRAS-10220010240
74TUBRAS-103100340
8
9
10
11ITEMNAMEINVOICE NODEITCREDITBALANCE
12TRIB
13TRIB
14TRIB
15TRIB
16
17
18
19ITEMNAMEINVOICE NODEITCREDITBALANCE
20TRANIB
21TRANIB
22TRANIB
SHEET1

any help would truly appreciate
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,940
Messages
6,122,361
Members
449,080
Latest member
Armadillos

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