• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Code to exclude cells returning zeros

Keletso

New Member
I am preparing a monthly payment report for 12 departments which requires information from various sources. I use one file to Lookup and calculate and transfer the transformed data into each department's model. However payment reports are not the same volumes (some has more cells others has less cells)

When i copy i want to exclude those cells that returns zeros
 
You could filter needed data.

Please reread How to get the Best Results at Chandoo.org from
 
However payment reports are not the same volumes (some has more cells others has less cells)
Very not a concern as when executing any VBA procedure all is static under Excel !​
For smart worksheets see UsedRange … For others another VBA help must see : CurrentRegion !​
In case of an Excel table just see its specific properties.​
When i copy i want to exclude those cells that returns zeros
For a smart fast efficient direct way just use an advanced filter ! (can't be used with an Excel table but the below …)
For beginners the indirect way : as the Excel Copy feature copies only the visible cells then,​
as already advised in the previous post, just filter the data before …​
 
Back
Top