Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extract data with formula from 1 excel sheet to another

Status
Not open for further replies.

rk68

Programmer
Jul 15, 2003
171
IN
Hi,
I have an excel sheet which has multiple formulas & each row has member id.
I have written a macro to extract data & copy it to multiple excel sheets as per the member id.
The issue is the new excel sheets created has only values & not the formulas.
How do I extract the data to another excel sheet along with the formulas.
These extracted sheets would mailed to respective member id so there shouldn't be a link to parent excel sheet.

TIA
Raj
 
Hi,

How do I extract the data to another excel sheet along with the formulas.

Copy n paste.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Use Copy method with Destination argument set. If you don't need formats, use PasteSpecial method. For exact formula copies (without references shift in case of relative addresses) you can use DestinationCell.Formula=SourceCell.Formula.
In the first two cases you shouldn't get external links if in the copied formulas in the source worksheet there are no references to other sheets.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top