+ Reply to Thread
Results 1 to 3 of 3

Copy Formula in range to new worksheet

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    2

    Copy Formula in range to new worksheet

    Hi,
    I am new - with little VBA experience - to this and as a 70 year old man my brain is maybe a bit slower now than it used to be...
    I am trying to copy a range in a worksheet to a new worksheet keeping the formula intact.
    The code below (from this forum) copies only values, not formula.
    Replacing Value with Formula does not work.
    Please Login or Register  to view this content.
    Also, I would like to keep the original formatting (column width, Style, etc.)

    Last: I want to give the new file a name based on the contents of a cell. This cell contains a text formula combining the contents of 3 different cells.

    Any help will be appreciated.
    Last edited by vlady; 07-01-2014 at 11:22 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Copy Formula in range to new worksheet

    copy a range in a worksheet to a new worksheet
    do not worry about your age. I am older to you.

    now what is the need for adding, opening closing workbooks

    take a new workbook
    in sheet 1 type in A1 to C1

    A1 1
    B1 2
    C1 =a1+B1
    format c1 with color e.g. yellow (manually)

    normally there is no need formacro

    select C1 edit copy
    goto sheet 2 select any cell edit-paste
    the formula will be added to the cell in sheet 2

    if you want a macro copying including the format

    try this macro and see sheet2

    Please Login or Register  to view this content.
    I am not an expert. better solutions may be available
    $$$$venkat1926$$$$@gmail.com

  3. #3
    Registered User
    Join Date
    07-01-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    2

    Re: Copy Formula in range to new worksheet

    Thank you Venkat. Much appreciated.
    problem solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Match Cell Range to Worksheet Name and copy/paste to respective worksheet
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2014, 04:06 PM
  2. Match Cell Value to Worksheet Name Then Copy/ Paste Range to Worksheet
    By matt2072 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2014, 01:23 PM
  3. Replies: 3
    Last Post: 09-08-2013, 06:38 PM
  4. Copy text from set range in one worksheet to named worksheet in another workbook
    By Steven811 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2013, 10:55 AM
  5. [SOLVED] macro error Copy Time format to other Worksheet and continues copy range
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-25-2012, 01:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1