VBA Code to Calculate Results & Output to new Sheet only if Multiple Parameters are Met

Sangdrax

New Member
Joined
Oct 13, 2014
Messages
9
Good Afternoon,

I'm trying to create a VBA code which will run and complete the following based in Excel 2003 & 2010. :confused:
Currently 1 data table exists in one excel workbook which I'm working off.

I'm trying to create a macro to run the following:

1) I need the VBA to output to a new workbook and give it a title: "Example Title"

2) It needs to output based on the following calculations:

- If Column F and Column G are blank and Column Y doesn't equal "A Word" - calculate Column E minus Column D and return this value only if it's greater than 7 in the new workbook along with select cell values from that item's row in this order:

- Column D, Column A, Column N, Column AI, Column AE, Column AE minus AH, Column AQ, Column Y, Answer from above calculation.

3) Save and Email the output to a selected address.

Is this at all possible? At the moment I have a table that is refreshed by a macro but it takes a very long time due to the amount of data currently in use.

I'm sure a better solution exists within the realms of VBA, just don't know how to start it.

Please any advice or suggestions are greatly appreciated.

Thank you very much for your time. :biggrin:

Kind Regards,

S
 

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,339
Messages
6,124,381
Members
449,155
Latest member
ravioli44

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