PC Review


Reply
Thread Tools Rate Thread

Copying chart templates to other workbook - Links

 
 
rukkie
Guest
Posts: n/a
 
      26th Jan 2007
Hi,

I have something "strange " (at least for me) going on ...

I have an xls workbook, containing some data sheets and also 3 chart
templates. These chart templates are copied via a macro to the output
xls with the statement :

Sheets(ChartName) _
.Copy Before:=Workbooks(targetfile.Window).Sheets(1)

When I now look to this chart template in the output xls I got a link
to the original xls workbook in which the macro is running. (I can see
that via EDIT>LINKS...)

Now I do NOT want that link to the originator xls workbook at all !

Is there anybody who knows how I can copy a chart template to another
workbook without the link (reference) to original workbook ?

Any help is very appreciated !!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      26th Jan 2007
Copy the source data as well, but copy the two sheets together.


Sheets(Array(ChartName,DataName)) _
.Copy Before:=Workbooks(targetfile.Window).Sheets(1)

--
Regards,
Tom Ogilvy


"rukkie" wrote:

> Hi,
>
> I have something "strange " (at least for me) going on ...
>
> I have an xls workbook, containing some data sheets and also 3 chart
> templates. These chart templates are copied via a macro to the output
> xls with the statement :
>
> Sheets(ChartName) _
> .Copy Before:=Workbooks(targetfile.Window).Sheets(1)
>
> When I now look to this chart template in the output xls I got a link
> to the original xls workbook in which the macro is running. (I can see
> that via EDIT>LINKS...)
>
> Now I do NOT want that link to the originator xls workbook at all !
>
> Is there anybody who knows how I can copy a chart template to another
> workbook without the link (reference) to original workbook ?
>
> Any help is very appreciated !!
>
>

 
Reply With Quote
 
rukkie
Guest
Posts: n/a
 
      26th Jan 2007
Hi,

are there no other possibilities than copying also the source data ?
People for who the output is generated are not interested in this
source data ...Otherwise I could give them also the originator xls
workbook and so EXCEL will never complain about "File not found" ... I
just want to avoid that they got the "overload" of sheets/data which
are not interesting for them ...

I hope you understand ...

On 26 jan, 17:25, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
wrote:
> Copy the source data as well, but copy the two sheets together.
>
> Sheets(Array(ChartName,DataName)) _
> .Copy Before:=Workbooks(targetfile.Window).Sheets(1)
>
> --
> Regards,
> Tom Ogilvy
>
> "rukkie" wrote:
> > Hi,

>
> > I have something "strange " (at least for me) going on ...

>
> > I have an xls workbook, containing some data sheets and also 3 chart
> > templates. These chart templates are copied via a macro to the output
> > xls with the statement :

>
> > Sheets(ChartName) _
> > .Copy Before:=Workbooks(targetfile.Window).Sheets(1)

>
> > When I now look to this chart template in the output xls I got a link
> > to the original xls workbook in which the macro is running. (I can see
> > that via EDIT>LINKS...)

>
> > Now I do NOT want that link to the originator xls workbook at all !

>
> > Is there anybody who knows how I can copy a chart template to another
> > workbook without the link (reference) to original workbook ?

>
> > Any help is very appreciated !!


 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      26th Jan 2007
http://support.microsoft.com/kb/213443/en-us
XL2000: Visual Basic Macro to Break Chart Links

you would do this after you copy the chart.

The other alternative would be to copy as picture and paste the chart in as
a picture.

--
Regards,
Tom Ogilvy


"rukkie" wrote:

> Hi,
>
> are there no other possibilities than copying also the source data ?
> People for who the output is generated are not interested in this
> source data ...Otherwise I could give them also the originator xls
> workbook and so EXCEL will never complain about "File not found" ... I
> just want to avoid that they got the "overload" of sheets/data which
> are not interesting for them ...
>
> I hope you understand ...
>
> On 26 jan, 17:25, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
> wrote:
> > Copy the source data as well, but copy the two sheets together.
> >
> > Sheets(Array(ChartName,DataName)) _
> > .Copy Before:=Workbooks(targetfile.Window).Sheets(1)
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> > "rukkie" wrote:
> > > Hi,

> >
> > > I have something "strange " (at least for me) going on ...

> >
> > > I have an xls workbook, containing some data sheets and also 3 chart
> > > templates. These chart templates are copied via a macro to the output
> > > xls with the statement :

> >
> > > Sheets(ChartName) _
> > > .Copy Before:=Workbooks(targetfile.Window).Sheets(1)

> >
> > > When I now look to this chart template in the output xls I got a link
> > > to the original xls workbook in which the macro is running. (I can see
> > > that via EDIT>LINKS...)

> >
> > > Now I do NOT want that link to the originator xls workbook at all !

> >
> > > Is there anybody who knows how I can copy a chart template to another
> > > workbook without the link (reference) to original workbook ?

> >
> > > Any help is very appreciated !!

>
>

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      26th Jan 2007
Another possibility with XP or later (suggested by Jon Peltier elsewhere)
Edit > Links > Break Link

The link Tom referred you to should work fine with typical smallish charts,
without special number formats in say axes or data labels, no linked titles
or labels, and won't work for all types of charts. There's also a max 255
characters limit (incl additional ancillary characters) per set of values
and can be less than 255, though I guess that's unlikely in a template
chart.

If neither Tom's link nor Jon's suggestion work fully as expected revert
back, I have something else you could try.

Regards,
Peter T


"rukkie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> are there no other possibilities than copying also the source data ?
> People for who the output is generated are not interested in this
> source data ...Otherwise I could give them also the originator xls
> workbook and so EXCEL will never complain about "File not found" ... I
> just want to avoid that they got the "overload" of sheets/data which
> are not interesting for them ...
>
> I hope you understand ...
>
> On 26 jan, 17:25, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
> wrote:
> > Copy the source data as well, but copy the two sheets together.
> >
> > Sheets(Array(ChartName,DataName)) _
> > .Copy Before:=Workbooks(targetfile.Window).Sheets(1)
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> > "rukkie" wrote:
> > > Hi,

> >
> > > I have something "strange " (at least for me) going on ...

> >
> > > I have an xls workbook, containing some data sheets and also 3 chart
> > > templates. These chart templates are copied via a macro to the output
> > > xls with the statement :

> >
> > > Sheets(ChartName) _
> > > .Copy Before:=Workbooks(targetfile.Window).Sheets(1)

> >
> > > When I now look to this chart template in the output xls I got a link
> > > to the original xls workbook in which the macro is running. (I can see
> > > that via EDIT>LINKS...)

> >
> > > Now I do NOT want that link to the originator xls workbook at all !

> >
> > > Is there anybody who knows how I can copy a chart template to another
> > > workbook without the link (reference) to original workbook ?

> >
> > > Any help is very appreciated !!

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying chart to location within same workbook HelenR Microsoft Excel Charting 2 12th Nov 2009 02:43 AM
Copying and pasting links within the same workbook GEwan Microsoft Excel Worksheet Functions 0 8th Jun 2009 05:50 PM
Chart Location Impact On Links When Copying To New Workbook Todd Microsoft Excel Charting 1 7th Mar 2009 01:07 AM
copying a pivot chart to another workbook =?Utf-8?B?REJyb2dz?= Microsoft Excel Charting 0 15th Jun 2006 09:33 PM
Copying Worksheet without links to parent workbook milojg Microsoft Excel Worksheet Functions 1 16th Jun 2004 04:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 AM.