+ Reply to Thread
Results 1 to 4 of 4

Add Row and Copy the Formula

  1. #1
    Forum Contributor
    Join Date
    12-01-2015
    Location
    Indonesia
    MS-Off Ver
    MS Office 365
    Posts
    109

    Add Row and Copy the Formula

    Dear All,

    Just need a help for the VBA script for select and copy the formula from certain range.
    If we double click on column J then will add a new row below the active cell and will copy the function on column A until H on same row with the active cell, then will paste into 2 rows below active cell on column A until H.

    For example: if we double click on J15, then will add new row below J15 also it will copy the function on range A15:H15. After that will paste formula into range A16:H17.

    Thank you

    Omega Boost
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Add Row and Copy the Formula

    try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    12-01-2015
    Location
    Indonesia
    MS-Off Ver
    MS Office 365
    Posts
    109

    Re: Add Row and Copy the Formula

    Dear Alansidman,

    Thank you for the respond, but actually I don't want to copy for the entire row just copy only the formula in column A until H.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Add Row and Copy the Formula

    In your example there is no difference as the entire row consists of A:H. Is this not representative of your actual file? A true representation of your actual file is always encouraged as we are not mind readers. Upload a representative file and we will give you code that works for your example.

+ 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. Alter existing formula to copy specific cells in row instead of copy entire column
    By painterartist in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-02-2014, 12:42 PM
  2. Replies: 8
    Last Post: 07-08-2013, 06:03 AM
  3. Replies: 3
    Last Post: 01-30-2013, 04:32 PM
  4. make faster copy paste or formula to assist in copy
    By gill389 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2010, 02:07 AM
  5. Copy Multi Formula and then freeze cell refs before second copy
    By Trig79 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-23-2009, 07:53 AM
  6. Copy Formula:copy the exact same formula in one column
    By Leprechaun in forum Excel General
    Replies: 1
    Last Post: 12-11-2006, 07:46 PM
  7. [SOLVED] Copy/Paste how to avoid the copy of formula cells w/o calc values
    By Dennis in forum Excel General
    Replies: 10
    Last Post: 03-02-2006, 06:50 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