+ Reply to Thread
Results 1 to 4 of 4

macro to copy formulas from the above row

  1. #1
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    259

    macro to copy formulas from the above row

    Hi all,

    I hope, tha there is somebody who will be able to help me with the following case :-D

    I have a spreadsheet, where I will have some firmulas in there ( blue columns). As this workbook wil lbe shared with multiple people and would like to avoid human errors while copy pasting formulas, is there any chance to get the VBA code, that will do the following:

    Macro to copy formulas from blue columns and pasted them into next 20 empty rows.

    Is this sometng doable?

    Thank you :-D
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    259

    Re: macro to copy formulas from the above row

    HI :-)

    anybody to help on how to autofill the formulas in next 20 empty rows ( formulsa iwll be in blue columns) by pressing the button?

  3. #3
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    259

    Re: macro to copy formulas from the above row

    Hi guys,

    nobody who could help? :-(

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: macro to copy formulas from the above row

    Hi dobracik,

    Try the following code (also in the attached updated copy of your file) which copies any formulas from Row 2 to the 20 rows after the last row used on Sheet 'Position Change'. Since your spreadsheet did not have any formulas, I put formulas in Columns C, E, and J which reference Sheet 'Data Base' using VLOOKUP(). The code is in Ordinary Code Module ModCopyFormulas.
    Please Login or Register  to view this content.
    To enable Macros and to Run Macros see the following:
    http://office.microsoft.com/en-us/ex...010031071.aspx
    http://office.microsoft.com/en-us/ex...010014113.aspx
    If help is still needed do a google search for 'youtube excel enable macro' and/or 'youtube excel run macro'.

    To access Visual Basic (VBA) see:
    http://www.ablebits.com/office-addin...a-macro-excel/
    a. Click on any cell in the Excel Spreadsheet (may not be needed).
    b. ALT-F11 to get to VBA.
    c. CTRL-R to get project explorer (if it isn't already showing).
    d. Double Click on a 'Module Name' in 'Project Explorer' to see code for that module.

    Lewis
    Attached Files Attached Files

+ 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. Macro to insert new row and copy formulas
    By kwood41799 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-21-2015, 12:34 PM
  2. Macro to insert new row and copy formulas from the above row.
    By manny kang in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-11-2014, 08:53 AM
  3. macro to add row, copy formulas and manipulate some of them
    By BOOYOUWHO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2013, 11:25 AM
  4. [SOLVED] Copy and paste formulas macro help
    By josh.metherd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 05:47 PM
  5. Macro to copy & paste Formulas.
    By ashokkumarkolla in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2011, 12:29 PM
  6. Macro to copy Formulas
    By Benjamin2008 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2010, 12:27 PM
  7. macro to copy down formulas
    By pmarques in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2006, 08:13 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