Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying a Worksheet from an AddIn into an empty Workbook

Hi,

I have a Worksheet in an AddIn. I want to copy this Sheet into a new,
empty Workbook.
I do this with the following Code:
Application.ThisWorkbook.Worksheets("Sheet1").Copy _
Before := ActiveWorkbook.Sheets("Sheet3")

The Problem is, that all Links in the new Workbook are changed from
='Sheet3!B17' to ='[AddIn.xla]Sheet3!B17'
Is there any possibility to prevent Excel to convert the Links?

Any Help will be gladly appreciate,

Manuel
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Copying a Worksheet from an AddIn into an empty Workbook

After you copy the sheet use the ChangeLink method to fix the links.

--
Jim Rech
Excel MVP


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
Copying a worksheet to another workbook Dutch Excel Discussion (Misc queries) 6 August 10th 07 05:01 PM
Open workbook to same worksheet and next empty row inta251 via OfficeKB.com Excel Worksheet Functions 3 February 24th 07 08:00 PM
Copying a worksheet into the same workbook Michael New Users to Excel 9 February 6th 06 08:35 PM
Copying A Worksheet From Each Open Workbook to an new Workbook carl Excel Worksheet Functions 1 January 3rd 06 05:37 PM
Copying worksheet to another workbook Haider Quazilbash Excel Programming 2 September 22nd 03 06:23 PM


All times are GMT +1. The time now is 03:29 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"