+ Reply to Thread
Results 1 to 4 of 4

Copy PasteSpecial Formulas from 1r x 10c rng to nr x 10c rng

  1. #1
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Copy PasteSpecial Formulas from 1r x 10c rng to nr x 10c rng

    Can't seem to get passed this and I know it's easy.

    lngRowInserts is a long variable holding the number of rows.

    Data is in, say A2:P2 and is declared as DataRange as Range.

    How do I copy DataRange and Paste Special as Formulas to the range of A3:PlngRowInserts?

    My effort:
    Please Login or Register  to view this content.
    Thanks.
    Last edited by AlvaroSiza; 02-02-2012 at 03:28 AM.

  2. #2
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Copy PasteSpecial Formulas from 1r x 10c rng to nr x 10c rng

    range of A3:PlngRowInserts
    Do you want to copy a row of data to a Column i.e. Transpose the data. Your code supplied would take one row from A2:P2 and place it at A"n" where n = lngRowInserts i.e copy part of a row of data to a row lower down in the sheet. If you want to transpose it
    Please Login or Register  to view this content.
    The only reason you would use lngRowInserts would be to set the data range to copy - does the range extend over more than 1 row. I am not sure what you are trying to do exactly.

    Hope this helps.
    Anthony
    “Confidence never comes from having all the answers; it comes from being open to all the questions.”
    PS: Remember to mark your questions as Solved once you are satisfied and rate the answer(s) questions.”

  3. #3
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Copy PasteSpecial Formulas from 1r x 10c rng to nr x 10c rng

    I am trying to paste the formulas in A2:P2 down into A3:P194 (where 194 = lngRowInserts). I'm trying to programmatically highlight the source range and fill down.

  4. #4
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Copy PasteSpecial Formulas from 1r x 10c rng to nr x 10c rng

    Try this:
    Please Login or Register  to view this content.
    Cheers, Rob.

  5. #5
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Copy PasteSpecial Formulas from 1r x 10c rng to nr x 10c rng

    Good ole Resize. Thanks Rob.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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