Hi
Any ideas How to prevent the Path displaying of the reference of particular sheets in formual of a cell
The following was the original when coding
when the Worksheet of different file was copied to new folder but with new file name got the following links.
in worksheet Cell formula displayed the following
So wanted to avoid the the Path or the Link marked in Red Above
the reason to avoid displaying path for any chance the file is deleted form the original folder. and still the link remains which could generate Error.
So wanted below formula to be displayed in the Cell(s). when File or workbook copied to another folder
Thanks
NimishK
Any ideas How to prevent the Path displaying of the reference of particular sheets in formual of a cell
The following was the original when coding
Code:
With ws
.Range("CP" & curRow).Formula=SUMIFS('Sheet7'!S:S,'Sheet7'!A:A,Sheet5!A:A,'Sheet7'!K:K,Sheet5!$CP$1)
End with
when the Worksheet of different file was copied to new folder but with new file name got the following links.
in worksheet Cell formula displayed the following
Code:
=SUMIFS([COLOR=#ff0000][B]'C:\Samples\[ABCD.xlsm][/B][/COLOR]Sheet7'!S:S,[B][COLOR=#ff0000]'C:\Samples\[ABCD.xlsm][/COLOR][/B]Sheet7'!A:A,[B][COLOR=#ff0000]'C:\Samples\[ABCD.xlsm][/COLOR][/B]Sheet5'!A:A,[COLOR=#ff0000][B]'C:\Samples\[ABCD.xlsm][/B][/COLOR]Sheet7'!K:K,[COLOR=#ff0000][B]'C:Samples\[ABCD.xlsm][/B][/COLOR]Sheet5'!$CP$1)
So wanted to avoid the the Path or the Link marked in Red Above
the reason to avoid displaying path for any chance the file is deleted form the original folder. and still the link remains which could generate Error.
So wanted below formula to be displayed in the Cell(s). when File or workbook copied to another folder
Code:
=SUMIFS('Sheet7'!S:S,'Sheet7'!A:A,Sheet5!A:A,'Sheet7'!K:K,Sheet5!$CP$1)
NimishK
Last edited: