+ Reply to Thread
Results 1 to 6 of 6

Macro to copy and paste sepcial into next blank row

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Macro to copy and paste sepcial into next blank row

    I have 12 sheets of data that I would like to collate into one sheet (sheet 13), I must be over looking something because I just cant seem to get this to work. Please review my code below, it hangs at the last line, what am I missing?
    Please Login or Register  to view this content.
    I hope someone can help me with this.
    Thanks in advance for your help

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to copy and paste sepcial into next blank row

    PasteSepcial should be PasteSpecial. There might be more than that wrong but its what i see from first glance.

    Note: It appears as though you are going to be copying the same range across all worksheets but number 13. Here is a quick way to do that

    Please Login or Register  to view this content.
    Last edited by stnkynts; 06-10-2013 at 04:21 PM.

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Macro to copy and paste sepcial into next blank row

    Thanks stnkynts, Good catch, fixed that but still no luck

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to copy and paste sepcial into next blank row

    where is the rest of your code and what are you trying to do? See added code above to see if it does what you want.

  5. #5
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Macro to copy and paste sepcial into next blank row

    Thanks, i think the issue was the paste special function I was using, I tried "xlvalues" instead of "xlPasteValuesAndNumberFormat" and it worked fine. Thanks for your help

  6. #6
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Macro to copy and paste sepcial into next blank row

    Sorry that shld read: I tried "xlPastevalues" instead of "xlPasteValuesAndNumberFormat" and it worked fine

+ 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