+ Reply to Thread
Results 1 to 8 of 8

Paste previously copied values as 123 except last one and...

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    Paste previously copied values as 123 except last one and...

    Hi guys,
    I would like to ask some help, basically what i need is:

    when data is entered and button pressed copy formula down till the last record
    then select the formulas which were dragged down (EXCEPT LAST ONE) and paste as values.
    if i will press button again it will start dragging formulas down from the last formula which was left.
    For example if before formula was dragged down from U2 till U10000 cell it will copy and paste as values from U2 till U9999 and next time it will start dragging formula from U10000 and so on.

    Basically i need that because when it exceeds more than 5000 records it takes more than 10 minutes to drag formula down.

    I appreciate your help guys.
    Thanks in advance


    Please Login or Register  to view this content.
    Last edited by intex; 01-30-2014 at 03:11 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Paste previously copied values as 123 except last one and...

    Try and comment
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Paste previously copied values as 123 except last one and...

    Hi PCI,
    thanks for your help, basically this code does what i want except when it pasted values it also cached the "U2" cell where the formula was located,
    when i press button second time it dragged down the values which is in "U2" cell.

    Maybe it is possible to exclude the cell "U2" of being pasted as a value?

    Thanks for your time PCI.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Paste previously copied values as 123 except last one and...

    If you just want U2 to stay with a formula just change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Paste previously copied values as 123 except last one and...

    Hi PCI
    i was thinking about that, but afraid if database will exceed over 100000 records how slow its going to be?
    maybe it is possible that it identifies where that last row with formula was which is "LastRow -1" and starts dragging from there?
    in other words if it was dragged from cell U2 till U100 it will know that next time it should start dragging from U100, because by using your code cells U2 - U99 will be pasted as values.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Paste previously copied values as 123 except last one and...

    I think I start to understand
    See how it works
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Paste previously copied values as 123 except last one and...

    It works perfect, you are genius PCI !!!
    Maybe you can explain me how that works? if not then ok i still very appreciate your help.

    Thank You

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Paste previously copied values as 123 except last one and...

    See some quick comments
    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. formula for +1 to previously copied sheets?
    By DyslexiaBlwos! in forum Excel General
    Replies: 1
    Last Post: 08-04-2012, 03:10 PM
  2. Replies: 0
    Last Post: 06-02-2006, 01:30 PM
  3. [SOLVED] copied formulas paste as values
    By Trev in forum Excel General
    Replies: 2
    Last Post: 02-11-2006, 01:15 AM
  4. [SOLVED] summing previously ranked values
    By ellebelle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2006, 12:30 PM
  5. RE: summing previously ranked values
    By ellebelle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2006, 09:37 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