We help IT Professionals succeed at work.

to copy data in excel and omit blank cells

alcuino
alcuino asked
on
Medium Priority
299 Views
Last Modified: 2012-05-11
Hi,

Could you provide me a macro which copies data from a specific range to a specific range and omit the blank cells while copying ?

Please find enclosed sample of the data and the needed  format.

Thanks
Alcuino
data.xlsx
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Rob HensonFinance Analyst
CERTIFIED EXPERT

Commented:
Do you need the blank cells actually omitted or do you want to avoid overwriting existing data because of blank cells in the source data?

If the latter, you can do a paste special and tick the box for Skip Blanks. You can then copy the whole range and paste in one go but where the copied range was blank it will not paste anything into the destination range.

Cheers
Rob H
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.