Import various cell values to user form

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,832
Office Version
  1. 2007
Platform
  1. Windows
Job for tomorrow but just asking whilst I have the idea in my head.

I’m going to import data from my worksheet to a user form.

Customers name will be in column A
Then across that row is values in each cell.
I don’t want to import entire row to user form as some of the values are not required.

As each customer is on a different row I can’t import by using say reference B3 B4 etc etc because the next customer I wish to import will be say F33 F36
So this is why I mentioned the customer is in column A to maybe use as a reference.

Example of what I’m thinking of doing but not sure how to right it.

TOM JONES is on row 20 & I wish to copy the values from A21 A22 A25 now as mentioned I can use the range option so can we import like say,
Active cell +1 = user form Textbox 7
Active cell +2 = user form Textbox 9
Active cell +5 = user form Textbox 11

Each time I wish to import it will then use customers name & whatever cells to the right I’m planning on using +1 +5 etc.

Makes sense ?
Thanks.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I’ve now done this using the code shown.


VBA Code:
Me.TextBox1.Value = Cells(ActiveCell.Row, 18).Value
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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