VBA

Great article on VBA efficiency

I don’t often re-post, but hard not to with this really good post from Kevin Roper of the Society of Actuaries on Excel VBA speed and efficiency  Well worth the read. https://www.soa.org/news-and-publications/newsletters/compact/2012/january/com-2012-iss42/excel-vba-speed-and-efficiency/

Macro to fix Duplicated Conditional Formatting rules in Tables

Following on from my recent post of Fix duplicated Conditional Formatting Rules , I mentioned Debra Dalgaleish’s website page had some great VBA to fix duplicated Conditional Formatting rules.  I tweeked this code just a bit so that all you have to do is select anywhere in any Table in the active worksheet and it …

Macro to fix Duplicated Conditional Formatting rules in Tables Read More »

Use the macro recorder for VBA code for a relative formula

I did this very thing today, so thought I would share this tip with you as it saved me a lot of time.   Say you wanted to have this formula go into column 8 of the range you created in VBA for the number of dynamic rows you extracted using Advanced Filter. =CHOOSE( OR(C6={“EL”,”IL”})*1+(C6=”MT”)*2+OR(C6={“IP”,”EP”})*3+(C6=”SC”)*4+(C6=”AD”)*5, “Labour”,”Materials”,”Plant”,”SubContract”,”Overheads”) …

Use the macro recorder for VBA code for a relative formula Read More »