PC Review


Reply
Thread Tools Rate Thread

Copying range of formulas to anotehr workbook

 
 
Brad P
Guest
Posts: n/a
 
      18th May 2011
Excel 2007: I have a large range of cells with formulas I want to copy to
another workbook but it only copies values. I can't copy the sheet to the
destination workbook, only to a new workbook. Anyone know how?

Thanks


 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      18th May 2011
> Excel 2007: I have a large range of cells with formulas I want
> to copy to another workbook but it only copies values. I can't
> copy the sheet to the destination workbook, only to a new
> workbook. Anyone know how?


I know how to do it with VB code. Select the cells with the formulas you
want to copy, then press ALT+F11 to get into the VB editor. Copy/Paste the
following into the window labeled Immediate (if you do not see it, press
CTRL+G to make it appear)...

Workbooks("Example Workbook.xls").Worksheets("Sheet1").Range("C3").Resize( _
Selection.Rows.Count, Selection.Columns.Count).Formula = Selection.Formula

Next, change the name of my destination workbook from my "Example
Workbook.xls" to the actual name of your destination workbook (make sure the
name is encased in quote marks like my example shows) ; also change the name
of the destination worksheet from my example "Sheet1" to the actual name of
your destination worksheet (again, encased in quote marks) and change my
example C3 destination cell address to the cell address you where the copied
formulas will start being copied to. Then, with the text cursor anywhere on
either line of this code, press the Enter Key. That should copy the formulas
from the selected range in you source workbook to the destination workbook.

Rick Rothstein (MVP - Excel)

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      18th May 2011
I would suggest that you have two instances of Excel running at the same time
with a book in each instance.

Close one instance and open both books in the remaining.

Now your formulas will copy to source book as formulas, not values.


Gord Dibben MS Excel MVP

On Wed, 18 May 2011 15:54:08 -0230, "Brad P" <(E-Mail Removed)> wrote:

>Excel 2007: I have a large range of cells with formulas I want to copy to
>another workbook but it only copies values. I can't copy the sheet to the
>destination workbook, only to a new workbook. Anyone know how?
>
>Thanks
>

 
Reply With Quote
 
Brad P
Guest
Posts: n/a
 
      19th May 2011

"Gord Dibben" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I would suggest that you have two instances of Excel running at the same
>time
> with a book in each instance.
>
> Close one instance and open both books in the remaining.
>
> Now your formulas will copy to source book as formulas, not values.
>
>
> Gord Dibben MS Excel MVP


Thats exactly what was happening. I opened up the otehr workbook in the same
instance using Shift-Open. (I have my Excel set to open all files in
different instances.

Thanks


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      19th May 2011
Seems like an awful lot of overhead.

Any particular reason why the new instance for each file?


Gord

On Thu, 19 May 2011 08:43:02 -0230, "Brad P" <(E-Mail Removed)> wrote:

>
>"Gord Dibben" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>>I would suggest that you have two instances of Excel running at the same
>>time
>> with a book in each instance.
>>
>> Close one instance and open both books in the remaining.
>>
>> Now your formulas will copy to source book as formulas, not values.
>>
>>
>> Gord Dibben MS Excel MVP

>
>Thats exactly what was happening. I opened up the otehr workbook in the same
>instance using Shift-Open. (I have my Excel set to open all files in
>different instances.
>
>Thanks
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying range from selected workbook to open workbook John Microsoft Excel Programming 2 11th Aug 2007 03:49 PM
Copying formulas from one workbook to another =?Utf-8?B?QnJlbmRhcw==?= Microsoft Excel Worksheet Functions 1 20th Jul 2007 10:07 PM
automatic copy worksheet to anotehr workbook John Keith Microsoft Excel Discussion 1 18th Jun 2007 02:57 AM
Copying Formulas from Workbook to Workbook =?Utf-8?B?UnVwZXJ0?= Microsoft Excel Misc 3 4th Jun 2007 03:44 PM
Copying cell formulas to another workbook? Ralph K Microsoft Excel Misc 1 30th Nov 2003 02:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 AM.