Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kamal
 
Posts: n/a
Default Copying as Picture Link - using Macro

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   Report Post  
Ron de Bruin
 
Posts: n/a
Default

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



  #3   Report Post  
Kamal
 
Posts: n/a
Default

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




  #4   Report Post  
Junior Member
 
Location: Ohio
Posts: 19
Default

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:
Originally Posted by Kamal
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
__________________
Justin Labenne
www.jlxl.net
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I link a picture to a text cell Chippy_Mark Excel Discussion (Misc queries) 3 June 26th 05 10:51 AM
Macro to link Sheets to main workbook raven_guy Excel Discussion (Misc queries) 0 June 24th 05 12:36 PM
Link a picture to data Tony S Excel Discussion (Misc queries) 0 May 19th 05 06:20 PM
Copying a workbook with custom toolbar assigned to a macro Matt W Excel Discussion (Misc queries) 1 February 4th 05 10:46 PM
copying text into a macro pagelocator Excel Worksheet Functions 1 November 24th 04 08:52 AM


All times are GMT +1. The time now is 03:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"