+ Reply to Thread
Results 1 to 2 of 2

Macro required to copy formuals in cells

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Macro required to copy formuals in cells

    Hi,

    can any please advise me of the macro code required to insert the following formulas into the associated cells in a tab called 'Weekly Template' and copy down these formulas down the columns i.e. 'AH2' to 'AN2' until the the last row with data in is reached N.B. there is data is in columns 'A' to 'AI'

    =VLOOKUP([@[CSC ID]],Table24,27,2) into cell ‘AH2’

    =VLOOKUP([@[CSC ID]],Table24,28,2) into cell ‘AI2’

    =VLOOKUP([@[CSC ID]],Table24,29,2) into cell ‘AJ2’

    =VLOOKUP([@[CSC ID]],Table24,30,2) into cell ‘AK2’

    =VLOOKUP([@[CSC ID]],Table24,31,2) into cell ‘AL2’

    =VLOOKUP([@[CSC ID]],Table24,32,2) into cell ‘AM2’

    =VLOOKUP([@[CSC ID]],Table24,33,2) into cell ‘AN2’

    Many thanks in advance for any assistance received

    Regards

    Rob
    Last edited by robertguy; 05-20-2016 at 04:20 AM. Reason: fo

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro required to copy formuals in cells

    You did not specify which column or columns we should look at to find the last used row.

    This code uses the Last Used Cell Instead

    Please Login or Register  to view this content.

    This code assumes that your last used data is in Column A ie column 1, if it is in Column B then change the 1 to a 2.


    Please Login or Register  to view this content.
    Last edited by mehmetcik; 05-19-2016 at 04:26 PM. Reason: No Formula Tags
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. Copy and Paste Formuals only, not Content
    By cvs2kids in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-16-2014, 05:06 PM
  2. Macro required to copy data from one workbook to another
    By bapsie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2013, 03:30 AM
  3. Macro to copy and past data and then drag formuals down
    By petetowner in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2012, 10:25 AM
  4. [SOLVED] Simple Macro required to Copy and Paste to the next cells in a range
    By scassells in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-05-2012, 12:06 PM
  5. Macro required - copy and paste into new workbook.
    By BurnsyNI in forum Excel General
    Replies: 1
    Last Post: 08-30-2011, 09:32 AM
  6. Macro is shifting cells with formuals to the right
    By Poison990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2009, 04:05 PM
  7. simple copy paste macro required
    By normanjones4 in forum Excel General
    Replies: 2
    Last Post: 02-27-2007, 12:00 PM
  8. Replies: 1
    Last Post: 02-11-2005, 12:06 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