Using Paste Link in a With statement

  • Thread starter Thread starter Phil Floyd
  • Start date Start date
P

Phil Floyd

Is there a way to paste a link using a with statement? I am using the
following code and I get an error when it runs on the last line.



sh.Range("L3").Copy



With DestSh.Cells(Last + 1, "B")

.ActiveSheet.Paste Link:=True



End With



I've also tried the following line to no avail



.PasteSpecial xlPasteLink





Can this be done using a with statement?



Thanks,



Phil
 
sh.Range("L3").Copy



With DestSh
.Activate
.Cells(Last + 1, "B").Select
.Paste Link:=True
End With
 
Thanks for the help.
Phil
Tom Ogilvy said:
sh.Range("L3").Copy



With DestSh
.Activate
.Cells(Last + 1, "B").Select
.Paste Link:=True
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top