+ Reply to Thread
Results 1 to 8 of 8

Code to copy formula from specific cell to end of data

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Code to copy formula from specific cell to end of data

    Hi,

    I have data in sheet1 starting from a2
    as mentioend below
    A2=raj
    A3=Stephen
    A4=Mores
    A5=wilfred
    A6=mack
    A7=sam
    A8=cavina
    A9=savio
    A10=issac


    I want to calculate length using =LEN('Sheet1'!a2) in cell a2 of sheet2
    The formula should start from A2 in sheet2 till the end of data existing in Sheet1
    I will keep adding data in sheet1
    Last edited by winmaxservices1; 01-02-2015 at 07:51 AM. Reason: error to be corrected

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Code to copy formula from specific cell to end of data

    ..and what happens when you put that formula in A2 on sheet 2 and copy it down?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Code to copy formula from specific cell to end of data

    I want to set the Macro to copy the formula to till end of the data, because every time I will be pasting a new data in sheet 1 and will run macro. I want to avoid copy paste process everytime

  4. #4
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Code to copy formula from specific cell to end of data

    Hope the below code works:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Code to copy formula from specific cell to end of data

    its working Properly.
    in a test sheet.

    But it not working in My actual file. Might be because of sheet name.

    My actual file contains "Paste Sheet" as sheet1 and "Process Data" as sheet2.
    can you change the code accordingly.

  6. #6
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Code to copy formula from specific cell to end of data

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Code to copy formula from specific cell to end of data

    Hi,

    Along with this can you give me separate vba code to add new worksheet with specific name?

  8. #8
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Code to copy formula from specific cell to end of data

    Please Login or Register  to view this content.

+ 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 code for copy specific data to another sheet
    By rishikrsaw in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2017, 05:01 AM
  2. VBA code to copy textbox input to specific cell
    By onemoremile in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-19-2014, 04:34 PM
  3. Code to copy entire row to another worksheet if cell has specific value
    By GenericPat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-24-2012, 01:09 AM
  4. Code to find and copy specific data
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 05:17 PM
  5. [SOLVED] Help- Code to copy specific row and insert above current row/cell
    By LoDe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-05-2012, 11:44 AM

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