Results 1 to 8 of 8

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

Threaded View

  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


    Private Sub CommandButton2_Click()
     Dim LastRow As Long
        With Worksheets("DataBase")
            LastRow = .Range("A" & .Rows.Count).End(xlUp).Row
        End With
        With Worksheets("DataBase")
            .Range("U2").AutoFill Destination:=.Range("U2:U" & LastRow)
        End With
    ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
    ActiveSheet.PivotTables("PivotTable3").PivotCache.Refresh
    End Sub
    Last edited by intex; 01-30-2014 at 03:11 PM.

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. [SOLVED] 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