How to clean in all cells the file path name after copy the sheet to a new workbook?

Lacan

Board Regular
Joined
Oct 5, 2016
Messages
228
Office Version
  1. 365
Platform
  1. Windows
Hi Guys, 👌

Everytime have to copy one sheet to a new workbook have in many cells have the file path name something like '[Simulador VDF (AG Nut)_1Outubro_VBA__3.xlsm]Aux_1'.
The file path name stays between '' .
Is there any way in order to clean all at once and still get the sheet work properly?
Thanks in advance!!! 👍👍🍻
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You can use Find/Replace (Ribbon >> Home tab >> Editing group >> Find & Replace >> Replace)...

Find what: '[*'!
Replace with:

Then click on Replace All.

Notice that 'Replace with' is left blank;

Hope this helps!
 
Upvote 0
You can use Find/Replace (Ribbon >> Home tab >> Editing group >> Find & Replace >> Replace)...

Find what: '[*'!
Replace with:

Then click on Replace All.

Notice that 'Replace with' is left blank;

Hope this helps!

Dear @Domenic

Thanks for the help!
It seems fine however get this error message:

Cannot find any data to replace. Check if your search formatting and criteria are defined correctly. If you are sure that there are matching data exists in this workbook, it may be on a protected sheet. Excel cannot replace data on a protected worksheet.

What do you think?
The sheet is unprotected in every way.
Thanks again.💪💪👍
 
Upvote 0
It's looking for a string that starts with ' , then followed by a [ , then followed by zero to any number of characters, then followed by another ' , and then ends with ! , is the logic correct?

Also, I"m assuming that 'Match entire cell contents' is unchecked, correct?
 
Upvote 0
Dear @Domenic and @Alex Blakenburg

Through both help have solved my question.
In the same sheet have in many cells this 2 path files type:

=+'C:\Users\Delegado\Desktop\Ficheiros VDF_2024\ABC_3\[Simulador VDF (AG Nut)_1Outubro_VBA__3.xlsm]Aux_1'!F10
=PROCX(E16;'C:\Users\Delegado\Desktop\Ficheiros VDF_2024\ABC_3\[Simulador VDF (AG Nut)_1Outubro_VBA__3.xlsm]VDF'!$B$92:$B$400;'C:\Users\Delegado\Desktop\Ficheiros VDF_2024\ABC_3\[Simulador VDF (AG Nut)_1Outubro_VBA__3.xlsm]VDF'!$D$92:$D$400;0;0)
1.Through Find/Replace (Ribbon >> Home tab >> Editing group >> Find & Replace >> Replace)...

Find what: C:*[*]
Replace with:

Solved this path file type: =+'C:\Users\Delegado\Desktop\Ficheiros VDF_2024\ABC_3\[Simulador VDF (AG Nut)_1Outubro_VBA__3.xlsm]Aux_1'!F10

2.Through Video Edit Links this one: =PROCX(E16;'C:\Users\Delegado\Desktop\Ficheiros VDF_2024\ABC_3\[Simulador VDF (AG Nut)_1Outubro_VBA__3.xlsm]VDF'!$B$92:$B$400;'C:\Users\Delegado\Desktop\Ficheiros VDF_2024\ABC_3\[Simulador VDF (AG Nut)_1Outubro_VBA__3.xlsm]VDF'!$D$92:$D$400;0;0)



Thank you very much!!! 👍👍🍻🍻
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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