troubleshooting Question

delete some portion of the 'text to display' for selected hyperlinks

Avatar of Andreas Hermle
Andreas HermleFlag for Germany asked on
VBAMicrosoft ExcelMicrosoft Office
4 Comments1 Solution50 ViewsLast Modified:
Dear Experts:

On the current worksheet I got hundreds of hyperlinks

The text to display of these hyperlinks are as follows:

Examples:
90-344-75-10_REV_1
90-422-93-22_REV_4
90-375-44-11_REV_6
90-437-22-13
90-169-58-10
90-432-74_10_REV_4

So some of them may have the '_REV_X' missing.

For the selected cells I would like to run a macro that eliminates this part (i.e. the '_REV_X' part) and just leaves the number as 'text to display'.

In the above example after running the macro the 'text to display'' for these hyperlinks would look like as follows:

90-344-75-10
90-422-93-22
90-375-44-11
90-437-22-13
90-169-58-10
90-432-74_10


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

Regards, Andreas
ASKER CERTIFIED SOLUTION
Saqib Husain
Engineer

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 4 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 4 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