Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a macro (Excel 2003) that paste links into another worksheet, however,
the formating of the font (size and color) does not come across. Sheets("Highlights").Select Range("$AR$2:$AR$2").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Sheets("Summary").Select Range("J2").Select ActiveSheet.Paste Link:=True I noticed that if I do this manually, it works( color comes across). Is there a special form of the paste link command to use? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Pasting the link essentially builds a formula that points back to that original
cell/range. You could record a macro when you copy the range and edit|paste special|formats and have your code. Be aware that this formatting won't change if the formatting of the original range changes. CarloPel wrote: I have a macro (Excel 2003) that paste links into another worksheet, however, the formating of the font (size and color) does not come across. Sheets("Highlights").Select Range("$AR$2:$AR$2").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Sheets("Summary").Select Range("J2").Select ActiveSheet.Paste Link:=True I noticed that if I do this manually, it works( color comes across). Is there a special form of the paste link command to use? -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
OK, but it doesn't work:
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False Macro fails with error code 1004 "PasteSpecial method of Range class failed" if I insert this into the code below. "Dave Peterson" wrote: Pasting the link essentially builds a formula that points back to that original cell/range. You could record a macro when you copy the range and edit|paste special|formats and have your code. Be aware that this formatting won't change if the formatting of the original range changes. CarloPel wrote: I have a macro (Excel 2003) that paste links into another worksheet, however, the formating of the font (size and color) does not come across. Sheets("Highlights").Select Range("$AR$2:$AR$2").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Sheets("Summary").Select Range("J2").Select ActiveSheet.Paste Link:=True I noticed that if I do this manually, it works( color comes across). Is there a special form of the paste link command to use? -- Dave Peterson . |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dim RngToCopy As Range
Dim DestCell As Range With Worksheets("Highlights") Set RngToCopy = .Range("ar2", .Range("ar2").End(xlDown)) End With Set DestCell = Worksheets("Summary").Range("J2") RngToCopy.Copy Application.Goto DestCell ActiveSheet.Paste link:=True RngToCopy.Copy DestCell.PasteSpecial Paste:=xlPasteFormats CarloPel wrote: OK, but it doesn't work: Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False Macro fails with error code 1004 "PasteSpecial method of Range class failed" if I insert this into the code below. "Dave Peterson" wrote: Pasting the link essentially builds a formula that points back to that original cell/range. You could record a macro when you copy the range and edit|paste special|formats and have your code. Be aware that this formatting won't change if the formatting of the original range changes. CarloPel wrote: I have a macro (Excel 2003) that paste links into another worksheet, however, the formating of the font (size and color) does not come across. Sheets("Highlights").Select Range("$AR$2:$AR$2").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Sheets("Summary").Select Range("J2").Select ActiveSheet.Paste Link:=True I noticed that if I do this manually, it works( color comes across). Is there a special form of the paste link command to use? -- Dave Peterson . -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy paste, link problem | Excel Discussion (Misc queries) | |||
How can I copy/paste a hyperlink address without the link? | Excel Discussion (Misc queries) | |||
Copy and paste link in worksheet is extremely slow. What to doÉ | Excel Discussion (Misc queries) | |||
Macro: Copy and Paste Boomberg Link | Excel Discussion (Misc queries) | |||
Copy Paste Special Link Cell Problem | Links and Linking in Excel |