Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I am preparing a report using macro . I want to copy that one page report to
a new file as a picture link. Can some one help me in writing a macro to copy - say range A1 : T50 - from one file and paste it to a new file as picture link? Thanks |
#2
![]() |
|||
|
|||
![]()
Like this:
Option Explicit Sub PastPicLink() Range("A1:T50").Copy ActiveSheet.Pictures.Paste(Link:=True).Select Application.CutCopyMode = False End Sub I don't know what you mean by copying it to a new file, an Excel file? Quote:
__________________
Justin Labenne www.jlxl.net |
#3
![]() |
|||
|
|||
![]()
Try this Kamal
Dim wb As Workbook Range("A1:T50").Copy Set wb = Workbooks.Add(1) wb.Sheets(1).Pictures.Paste(Link:=True).Select Application.CutCopyMode = False -- Regards Ron de Bruin http://www.rondebruin.nl "Kamal" wrote in message ... I am preparing a report using macro . I want to copy that one page report to a new file as a picture link. Can some one help me in writing a macro to copy - say range A1 : T50 - from one file and paste it to a new file as picture link? Thanks |
#4
![]() |
|||
|
|||
![]()
Ron,
It worked very well. Exactly the way I wanted. Thanks a lot "Ron de Bruin" wrote: Try this Kamal Dim wb As Workbook Range("A1:T50").Copy Set wb = Workbooks.Add(1) wb.Sheets(1).Pictures.Paste(Link:=True).Select Application.CutCopyMode = False -- Regards Ron de Bruin http://www.rondebruin.nl "Kamal" wrote in message ... I am preparing a report using macro . I want to copy that one page report to a new file as a picture link. Can some one help me in writing a macro to copy - say range A1 : T50 - from one file and paste it to a new file as picture link? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I link a picture to a text cell | Excel Discussion (Misc queries) | |||
Macro to link Sheets to main workbook | Excel Discussion (Misc queries) | |||
Link a picture to data | Excel Discussion (Misc queries) | |||
Copying a workbook with custom toolbar assigned to a macro | Excel Discussion (Misc queries) | |||
copying text into a macro | Excel Worksheet Functions |