Results 1 to 5 of 5
  1. #1
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Inserting Data to the Buffer (A2K SR1)

    How would you write data to the buffer via code so it can be inserted into another application?

    This is similar to highlighting a table or query results and then selecting copy and then going to excel and selecting paste.

    I know I could use Transfer Spreadsheet or Output to command, but these fail when excel is open and I want to paste data to a different worksheet of the active workbook. (which is the actual problem I am trying to solve.)

    Not sure if this post belongs in access or excel so I am posting it here.
    Regards,

    Gary
    (It's been a while!)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Inserting Data to the Buffer (A2K SR1)

    Do you want to copy/paste data selected by the user, or all records from a table or query?

  3. #3
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Inserting Data to the Buffer (A2K SR1)

    Hans,

    All records from a query.
    Regards,

    Gary
    (It's been a while!)

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Inserting Data to the Buffer (A2K SR1)

    You can do this from Excel using the CopyFromRecordset method of the Range object. See for example <post#=376113>post 376113</post#> or do a search for CopyFromRecordset in the Access or Excel forum.

  5. #5
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Inserting Data to the Buffer (A2K SR1)

    Hans,

    Will do. Thanks for pointing me in the right direction.
    Regards,

    Gary
    (It's been a while!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •