+ Reply to Thread
Results 1 to 8 of 8

VBA String variable paste into separate application

  1. #1
    Registered User
    Join Date
    03-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    57

    VBA String variable paste into separate application

    hello all

    is it possible to have a string variable within the vba code and then take this variable and paste it into another application?

    I had thought of placing the string variable in a new sheet and then copying it but I want the new sheet to be deleted and this clears the memory.

    Any thoughts?

    Jim

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: VBA String variable paste into separate application

    Hi, Jim,

    what other application, what do you want to pass, is the other application driven by VBA as well?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    03-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: VBA String variable paste into separate application

    Hello Holger

    No the other application is non vba unfortunately...

    Any thoughts?

    Jim

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: VBA String variable paste into separate application

    Hi, Jim,

    maybe you could use the ClipBoard for getting the data over, or pass the data as a paramneter (maybe using Shell).

    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    03-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: VBA String variable paste into separate application

    how would I do that?

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: VBA String variable paste into separate application

    Hi, Jim,

    has that anything to do with http://www.excelforum.com/excel-prog...n-website.html You would need to pass any information about what oyu wan tot pass as well as maybe the application and how this application awaits the information.

    Ciao,
    HOlger

  7. #7
    Registered User
    Join Date
    03-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: VBA String variable paste into separate application

    I really just want the variable string to be on the clipboard, the macro ends, then the user pastes the contents manual using ctrl and v into the other application.

    Is this possible?

  8. #8
    Registered User
    Join Date
    03-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: VBA String variable paste into separate application

    I really just want the variable string to be on the clipboard, the macro ends, then the user pastes the contents manual using ctrl and v into the other application.

    Is this possible?

  9. #9
    Registered User
    Join Date
    03-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: VBA String variable paste into separate application


+ 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] Insert String and String Variable Into Cell
    By sjennings007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2014, 12:50 PM
  2. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  3. Transferring a dynamically named string variable to another string variable.
    By Concorde Rules in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2012, 04:08 AM
  4. Need workbook w/ VBA to open in new & separate application window
    By mikeolson in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2006, 09:25 PM
  5. [SOLVED] separate application windows
    By JC in forum Excel General
    Replies: 0
    Last Post: 06-29-2006, 09:25 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