Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 127
Default How to Change External Link to Internal Link

Excel 2003. I am programmatically copying selected sheets from one workbook
to another. For example, I copy four sheets from one workbook to another.
The fourth sheet copied has formulas that reference the first three sheets
copied. When the fourth sheet is copied, an external link is created in
these formulas that references the "copy from" workbook. I want the fourth
sheet to reference the sheets in the "copy to" workbook rather than the "copy
from" workbook. How may I accomplish this? Thanks for any help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default How to Change External Link to Internal Link

Chaplain Doug wrote:
Excel 2003. I am programmatically copying selected sheets from one
workbook to another. For example, I copy four sheets from one
workbook to another. The fourth sheet copied has formulas that
reference the first three sheets copied. When the fourth sheet is
copied, an external link is created in these formulas that references
the "copy from" workbook. I want the fourth sheet to reference the
sheets in the "copy to" workbook rather than the "copy from"
workbook. How may I accomplish this? Thanks for any help.



Hi Doug,

I don't if it is possible from a macro, but from menu Edit, Links, you have
the possibility to change the source of a link from a workbook to another,
even to the workbook in which the link is.

You could try to record a macro when you do the operations...

--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to Change External Link to Internal Link


Chaplain Doug wrote:
Excel 2003. I am programmatically copying selected sheets from one workbook
to another. For example, I copy four sheets from one workbook to another.
The fourth sheet copied has formulas that reference the first three sheets
copied. When the fourth sheet is copied, an external link is created in
these formulas that references the "copy from" workbook. I want the fourth
sheet to reference the sheets in the "copy to" workbook rather than the "copy
from" workbook. How may I accomplish this? Thanks for any help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


Hi Chaplain.

Try using changelinks method ... eg
ActiveWorkbook.ChangeLink "c:\excel\book1.xls", "c:\excel\book2.xls",
xlExcelLinks


Please check the help file for additional info ..

Cheers,
Tausif

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 127
Default How to Change External Link to Internal Link

Thank uyou for the tip. That is what I used.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


" wrote:


Chaplain Doug wrote:
Excel 2003. I am programmatically copying selected sheets from one workbook
to another. For example, I copy four sheets from one workbook to another.
The fourth sheet copied has formulas that reference the first three sheets
copied. When the fourth sheet is copied, an external link is created in
these formulas that references the "copy from" workbook. I want the fourth
sheet to reference the sheets in the "copy to" workbook rather than the "copy
from" workbook. How may I accomplish this? Thanks for any help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


Hi Chaplain.

Try using changelinks method ... eg
ActiveWorkbook.ChangeLink "c:\excel\book1.xls", "c:\excel\book2.xls",
xlExcelLinks


Please check the help file for additional info ..

Cheers,
Tausif


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
External link saved as internal - updating with Outlook [email protected] Links and Linking in Excel 1 August 15th 07 01:26 AM
Link to external link Chris Wong Excel Worksheet Functions 0 August 3rd 06 07:00 AM
how to set up an internal link between two excel files? Guozhong Cao Excel Discussion (Misc queries) 0 May 18th 06 08:33 PM
External link KIS Excel Worksheet Functions 1 May 28th 05 12:36 PM
Bad External Link TH[_3_] Excel Programming 8 April 21st 04 03:57 AM


All times are GMT +1. The time now is 04:09 AM.

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

About Us

"It's about Microsoft Excel"