Hi All,
I've searched all over the internet and not found an answer.
I need a macro which will read the cell I have linked to, copy the formatting and paste it into the current cell.
All cells in the sheet will be linked to another source.
Each cell in the source is linked from multiple cells in the destination sheets.
What I have so far is this.
As you can see it reads through a selected range and is all ready to paste.
All I'm missing is the code to read the cell it is linked to and copy it.
Anyone able to assist?
I've searched all over the internet and not found an answer.
I need a macro which will read the cell I have linked to, copy the formatting and paste it into the current cell.
All cells in the sheet will be linked to another source.
Each cell in the source is linked from multiple cells in the destination sheets.
What I have so far is this.
Code:
Sub CopyFormat()
If TypeName(Selection) <> "Range" Then Exit Sub
On Error Resume Next
' Check the cells with formulas
For Each cell In Selection.SpecialCells(xlFormulas, 23)
ActiveCell.PasteSpecial xlPasteFormats
Application.CutCopyMode = False
Next cell
End Sub
As you can see it reads through a selected range and is all ready to paste.
All I'm missing is the code to read the cell it is linked to and copy it.
Anyone able to assist?