Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Inporting and Deleting Sheets

I have a macro that deletes old sheets from a master workbook and imports the
new sheets containing the updated information. In the master workbook, I
have links to each sheet and when they are delete the old sheets, the link
goes away as well. The new sheets are in the exactly the same format so if
the previous links did work, it would pull the right information. Is there a
way (other than using code to reset the links) to keep the links active as
sheets delete and are replaced?

Thanks for your help!

Brennan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Inporting and Deleting Sheets

Consider not deleting the old sheets and replacing with new sheets. How
about just refreshing the data in the sheets with data from the most recent
sheets.


(import the data, not the sheets)


--
Gary''s Student - gsnu200785


"Brennan" wrote:

I have a macro that deletes old sheets from a master workbook and imports the
new sheets containing the updated information. In the master workbook, I
have links to each sheet and when they are delete the old sheets, the link
goes away as well. The new sheets are in the exactly the same format so if
the previous links did work, it would pull the right information. Is there a
way (other than using code to reset the links) to keep the links active as
sheets delete and are replaced?

Thanks for your help!

Brennan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Inporting and Deleting Sheets

When you delete those sheets the links are gone...permanently! You will have
to come up with some other method of refreshing, or resetting, the data in
those linked sheets. What is the data source? Why don't you activate the
sheet that the data is imported into, and use some basic code like this:

Sheets("Sheet1").Select
Cells.Select
Selection.ClearContents
'...other stuff down here...


Regards,
Ryan---




--
RyGuy


"Gary''s Student" wrote:

Consider not deleting the old sheets and replacing with new sheets. How
about just refreshing the data in the sheets with data from the most recent
sheets.


(import the data, not the sheets)


--
Gary''s Student - gsnu200785


"Brennan" wrote:

I have a macro that deletes old sheets from a master workbook and imports the
new sheets containing the updated information. In the master workbook, I
have links to each sheet and when they are delete the old sheets, the link
goes away as well. The new sheets are in the exactly the same format so if
the previous links did work, it would pull the right information. Is there a
way (other than using code to reset the links) to keep the links active as
sheets delete and are replaced?

Thanks for your help!

Brennan

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
Inporting JPEGs Pete Charts and Charting in Excel 1 January 13th 08 03:35 PM
Deleting Custom Views when Deleting Sheets ExcelMonkey Excel Programming 1 March 28th 07 06:11 AM
CSV file for inporting contact list from Hotmail to Gmail using Ex Jesterzone Excel Discussion (Misc queries) 2 August 21st 05 05:21 PM
deleting sheets KLP Excel Discussion (Misc queries) 3 January 14th 05 12:24 AM
Inporting data from a group of .prn files Raul[_4_] Excel Programming 3 May 8th 04 04:26 PM


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