We help IT Professionals succeed at work.
Get Started

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

47 Views
Last Modified: 2020-01-15
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
Comment
Watch Question
Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE