troubleshooting Question

Copy column before Column A using a macro

Avatar of Andreas Hermle
Andreas HermleFlag for Germany asked on
VBAMicrosoft ExcelMicrosoft Office
6 Comments2 Solutions101 ViewsLast Modified:
Dear Experts:

I would like to run a macro that performs the following actions on the currently active worksheet

Search for a column label in Row 1 named 'Path'. If not found a msgbox is to pop up, telling that column label 'path not found' and the macro is to exit.
If found, the whole column (column labeled 'Path') is to be moved before Column A (i.e. not overwriting the data that exists in Column A).
So the Column labeled Path is then located in Column A, the other columns have been shifted to the right.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
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