LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Copy links from one spreadsheet to the other


I have two questions for the same macro

I have a master Jobsite spreadsheet that holds jobsite information and the
macros that are needed to automate the project. This Jobsite spreadsheet
opens an estimating template and populates it with a selected jobsite data.
The two tabs below "SUMMARY METRICS", "DETAIL & UNIT METRICS are the tabs
that populate the estimating template.

1) First question. The following code copies these sheets to the new
template

Sheets(Array("SUMMARY METRICS", "DETAIL & UNIT METRICS")).Copy Befo= _
Workbooks("Estimating Template Master.xls").Sheets(9)

This all works, but a pop-up message occurs asking if I wish to use the
names on the template, which I do. The message sound something like the
following

A formula you copy contains the name ***, which already exists on the
destination worksheet. Do you want to use this version of the name?

And asks Yes or No I want it to always be yes and my question is how do I
put this into the above code?

2) Second question. This macro also renames the estimating template to the
projects name. As it does this the above SUMMARY METRICS", "DETAIL & UNIT
METRICS" tabs on the Jobsite master get assigned to the new estimating
template name. How do I stop this from happening? I need the link to stay
attached to the "Estimating Template Master.xls" and not what that sheet is
being renamed to. Since these tabs reside in the Jobsite master and copied
to the estimating template and the macros are on this Jobsite master (so I
cant close it) as the estimating template changes names I need the link to
stay attached to the "Estimating Template Master.xls" and not what it is to
be renamed as.

 
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
spreadsheet links patti Links and Linking in Excel 2 January 13th 10 11:18 PM
Links in spreadsheet PeterW[_12_] Excel Programming 2 May 15th 07 08:13 PM
How do I get rid of old links in a spreadsheet? JeremyInNC Setting up and Configuration of Excel 3 September 12th 06 10:30 PM
Spreadsheet links Karen Excel Discussion (Misc queries) 1 September 11th 06 02:58 PM
Spreadsheet links Marshall Scmidt Excel Discussion (Misc queries) 2 October 28th 05 04:30 PM


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