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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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