+ Reply to Thread
Results 1 to 3 of 3

Macro that copies & paste-special(Values) non-blank rows

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    21

    Macro that copies & paste-special(Values) non-blank rows

    I have a code setup that's intended to select Cells A1:M88, copy all non-blank rows, Paste these rows starting at A102 and then copy them to my clipboard (without calculating my sheet).

    The code I've got, only seems to copy & Paste Column A, but it does properly remove blank rows. How can I modify this to I guess Paste out ColA:ColM?

    Please Login or Register  to view this content.
    *Edit*
    Changing A1:A88 to A1:M88 tells me "That command cannot be used on multiple selections."
    Last edited by Elieson; 07-27-2015 at 11:26 AM. Reason: Added note

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro that copies & paste-special(Values) non-blank rows

    Hello Elieson,

    You need to set the optional argument {b]SkipBlanks[/b] to True. The default is false.

    Change these lines from...
    Please Login or Register  to view this content.
    To these...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    01-11-2014
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Macro that copies & paste-special(Values) non-blank rows

    @Leith

    That did help.

    I'm still only getting A1:A88 to copypaste out, instead of A1:M88. Thoughts on that?

+ 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. Replies: 2
    Last Post: 06-05-2015, 08:59 PM
  2. How to Copy and Paste Special Values Only if source Range is not blank
    By oddinho2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2013, 02:51 PM
  3. [SOLVED] Paste Special Values To First Blank Row
    By gshea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2012, 08:43 AM
  4. [SOLVED] Cannot Paste Special Values, XlDown, first blank row and across and down
    By gshea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2012, 01:04 AM
  5. [SOLVED] Macro that copies every 600 rows and paste data in new spreadsheet
    By Bealey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2012, 09:38 AM
  6. Need macro button to copy and paste special values into next available blank row
    By AngelaG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2011, 07:55 AM
  7. Paste special values from one worksheet into next blank row in another
    By AngelaG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2011, 05:43 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