VBA TO PULL DATA FROM ANOTHER WORKSHEET

DYLANATT1999

New Member
Joined
Aug 8, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Excel Sheet

The above is an example spreadsheet.

To give context, I have data that exports from a database to an Excel spreadsheet. I want to be able to quickly calculate the information that is exported from the database and save the result.

For example on the attached, Sheet 1 contains the data. Sheet 1 contains the formula.

You can see the corresponding headings in B3:H3 in sheet 2 to sheet 1 C4:C9

I want to be able to enter the data into sheet 2 and then click run and it will run until the table last line is blank, then it will stop as I will add more lines to the table

In sheet 1 I also want to be able to recall the information from a select line in sheet 2, I have created a user form for this.

Sorry for all the requirements, any guidance would be appreciated - I am pretty new to VBA
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,970
Messages
6,127,992
Members
449,414
Latest member
sameri

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