troubleshooting Question

copy value and formatting from one range to another without select / copy / paste

Avatar of peispud
peispudFlag for Canada asked on
Microsoft Excel
6 Comments2 Solutions1429 ViewsLast Modified:
Hi

I am using excel 2013 VBA.  I would like to copy the value and formatting (background color) of one range to another range.

The two ranges are identical in size and shape.  The code below copies the values, but not the cell formatting.  To be specific, I would like to copy the cell value and the background color of the cells in the range.

Also, I do not want the activecell to change.  Except for the target, I wish the screen to be unaffected.

Range("Area1").Value = Range("Area2").Value

Thank you.
ASKER CERTIFIED SOLUTION
AnthonyHamon

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros