VBA code required

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,539
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

In a worksheet "Master" I have the below formulas

In Range B4:B9
Excel Formula:
=IFERROR(AGGREGATE(15,6,'C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_ref/((('C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_status="In Process")*('C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_customer="abc"))*ISNA(MATCH('C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_ref,B$3:B3,0))),1),"")

In Range C4:C9
Excel Formula:
=LOOKUP(2,1/('C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_ref=$B4),'C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_po_1)

In Range G4:G9
Excel Formula:
=SUMPRODUCT(--('C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_ref=B4),'C:\OneDrive\Documents\DATA ENTRY.xlsm'!orders_quantity)

What I want is a VBA code which when run does the following

1) get the values in all 3 above mentioned columns with the formulas
2) Change the formulas to values

Regards,

Humayun
 
As this is a significantly different question, from the OP's please start a thread of your own. Thanks
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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