+ Reply to Thread
Results 1 to 4 of 4

Macro Excel 2007 to get clipboard

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    Wolverhampton,England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Macro Excel 2007 to get clipboard

    I wish to make a macro that will paste All from the clipboard Excel 2007 ( do the same as the Paste All Clipboard button )
    The cell is A1 sheet "H"
    after it has pasted there another macro to clear All (do the same as the clear all Clipboard button)
    any ideas on the macro code??
    Many thanks
    Steve

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro Excel 2007 to get clipboard

    Did you try recording the actions????
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Wolverhampton,England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Macro Excel 2007 to get clipboard

    If you have 3 copied parts of data in the clipboard and use the paste all clipboard button all 3 parts of data are pasted underneath each other.
    I would like to use a macro that when run would preform the same function.
    Any ideas.
    If you try to record a macro it reads as
    Sub Macro2()
    '
    ' Macro2 Macro
    '

    '
    Range("C1").Select
    ActiveSheet.Paste
    ActiveSheet.Paste
    ActiveSheet.Paste
    End Sub

    If you copy 3 pieces of data and run the macro again it will only paste the last copied data.
    Thanks
    Steve.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro Excel 2007 to get clipboard

    Hi Steve,

    I haven't got 2007, but I can write routines that use the Copy method - to do so, I would need to know what you wanted to copy and where you wanted to put it - it can be, under certain circumstances, a multiple selection???

+ 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