+ Reply to Thread
Results 1 to 4 of 4

Copy and Paste Values based on column data

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Copy and Paste Values based on column data

    I would like to copy and paste the values from a worksheet (HS-Detail) in a file to different tabs depending on the value in column A (Regions). I have a macro that works but it pastes the formulas and it takes quiet a while to run due to the number of records. How can I alter this to paste just the values and speed up the macro?


    Please Login or Register  to view this content.
    Last edited by arlu1201; 01-28-2014 at 02:33 PM. Reason: Use code tags in future.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Copy and Paste Values based on column data

    Try this macro. It looks like you're starting to look for the values in column A at row 8. If this is not correct, you'll have to change the number in Range("A8:A" & bottomA).
    Please Login or Register  to view this content.
    Last edited by Mumps1; 01-28-2014 at 04:00 PM.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    08-20-2013
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copy and Paste Values based on column data

    This sped it up. If I have another value in Column A of the HS-Detail tab the macro errors out. What can I add to the macro to keep going (and skip) any rows that don't have to specified values?

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Copy and Paste Values based on column data

    Place this line:
    Please Login or Register  to view this content.
    below this line:
    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. [SOLVED] copy Tabs, based on two criteria in column J and paste values
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-13-2013, 03:46 PM
  2. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  3. [SOLVED] Macro to Copy Data and Paste Values Based on cell criteria
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 06:51 PM
  4. paste RNG numbers
    By kaohik78 in forum Excel General
    Replies: 0
    Last Post: 09-26-2012, 10:30 PM
  5. Macro to copy and paste special values for column data and filter column data
    By ascottbag in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2012, 02:15 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