HI all
I have setup vba code to get comments from another workbook. It works fine until I close down all workbooks and reopen.
Then then link has changed from
=GetComments('[EPN - SPN - ROTA 1st April 2019 to 1st April 2020.xlsx]Rota 2019-20'!J35)
to
=GetComments('\\Ukpnforfs01\1$\Power Networks\Asset Management\NETWORK_OPS\NET_CNTRL\Control Room Rota\EPN SPN Control Room Rotas\[EPN - SPN - ROTA 1st April 2019 to 1st April 2020.xlsx]Rota 2019-20'!J35)
and the links are corrupted! I then have to re-make the links
VBA code
Function GetComments(pRng As Range) As String
'Updateby20140509
If Not pRng.Comment Is Nothing Then
GetComments = pRng.Comment.Text
End If
End Function
Bothe workbooks are stored the same file location
I have setup vba code to get comments from another workbook. It works fine until I close down all workbooks and reopen.
Then then link has changed from
=GetComments('[EPN - SPN - ROTA 1st April 2019 to 1st April 2020.xlsx]Rota 2019-20'!J35)
to
=GetComments('\\Ukpnforfs01\1$\Power Networks\Asset Management\NETWORK_OPS\NET_CNTRL\Control Room Rota\EPN SPN Control Room Rotas\[EPN - SPN - ROTA 1st April 2019 to 1st April 2020.xlsx]Rota 2019-20'!J35)
and the links are corrupted! I then have to re-make the links
VBA code
Function GetComments(pRng As Range) As String
'Updateby20140509
If Not pRng.Comment Is Nothing Then
GetComments = pRng.Comment.Text
End If
End Function
Bothe workbooks are stored the same file location