Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2003, sp2
I use the following code to import a sheet from another workbook: Workbooks("Data").Sheets("SiteData2").Copy After:=ThisWorkbook.Sheets("SiteData1") Both workbooks contain a sheet named "SiteInfo" and all SiteData sheets contain linked formulas to the SiteInfo sheet. After the copy "SiteData2" links to the workbook from which it originated. I however want the links to point to SiteInfo in the workbook it was imported to. So far I have solved this problem by looping through the SiteData2 sheet, replacing the =[Data.xls] part of the link with "" in all cells. The SiteData sheet contains however a lot of links and sometimes my macro "imports" 10 or more sheets in a row. Thus the code has to loop through a lot of cells in many sheets which makes the import take up to 30 secs. Is there a better way to do this? Regards Pete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting Worksheet w/o breaking links to other sheets | Excel Discussion (Misc queries) | |||
Breaking Links | Excel Discussion (Misc queries) | |||
Breaking Links | Excel Discussion (Misc queries) | |||
Breaking Links | Excel Discussion (Misc queries) | |||
Breaking Links | Excel Discussion (Misc queries) |