troubleshooting Question

Macro to take cell value, search another sheet, and paste in correct location

Avatar of Andrew Parker
Andrew ParkerFlag for Australia asked on
Microsoft ApplicationsMicrosoft OfficeMicrosoft Excel
16 Comments1 Solution855 ViewsLast Modified:
Hi All

I have 2 worksheets, Month & Year.  Figures are set by another macro for worksheet 1 (month)  which creates a chart.  I need a macro that takes the month / text from G2 (Currently September 2009), searches column A in worksheet 2 (year) if exists, msgbox " overwrite", yes = pastes cells A2 to D2 (Month) into relevant B2-E2 (Year).

If the month doesnt exist insert month into correct row column A (assending order) and then paste A2-D2 (Month) into B2-E2 next to the newly entered month A entry.

Hope thats clear enough.


Rob Henson
Finance Analyst

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

Join our community to see this answer!
Unlock 1 Answer and 16 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 1 Answer and 16 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