macro to remove ALL the " ' and [String]" (links) on a worksheet

sdoppke

Well-known Member
Joined
Jun 10, 2010
Messages
647
Hi everyone, can someone help me insert some script into my macro that will remove all the text in pink on a whorksheet (its not really in pink, just helping to describe :) :

=VLOOKUP(A15,'S:\hello\WFR\Test\[Post and Script]VCR Copy and Paste'!A$1:C$65536,3,0)

Thank you so much for any help. :0

sd
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi everyone, can someone help me insert some script into my macro that will remove all the text in pink on a whorksheet (its not really in pink, just helping to describe :) :

=VLOOKUP(A15,'S:\hello\WFR\Test\[Post and Script]VCR Copy and Paste'!A$1:C$65536,3,0)

Thank you so much for any help. :0

sd

You just want to remove all text "'S:\hello\WFR\Test\[Post and Script]" in your worksheet formulas?

Have you tried the Find and Replace procedure? Hit CTRL+F and in the Find dialogue paste: 'S:\hello\WFR\Test\[Post and Script] and leave the Replace dialogue blank...?
 
Upvote 0
You just want to remove all text "'S:\hello\WFR\Test\[Post and Script]" in your worksheet formulas?

Have you tried the Find and Replace procedure? Hit CTRL+F and in the Find dialogue paste: 'S:\hello\WFR\Test\[Post and Script] and leave the Replace dialogue blank...?


Yep, i tried using the macro recorder but it doesnt work. I am trying to remove the entire link, so yes , everything from the S to the ]

Any idea how to write that in a script?

sd
 
Upvote 0
try
Code:
Dim x
x = ActiveCell.Replace("'*]", "")
or equivalent.

In this, no need to define x as anything.
 
Upvote 0
try
Code:
Dim x
x = ActiveCell.Replace("'*]", "")
or equivalent.

In this, no need to define x as anything.


Thank you so much, im on the right track, what would it take to modify that so that it does that to ever cell on that worksheet?

sd
 
Upvote 0
Code:
Dim x As Boolean
x = ActiveSheet.UsedRange.Replace("'*]", "")
although it may not work for cells with the ' at the start.

But should be easily modified if that's a problem for you.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top