Results 1 to 7 of 7

vba to copy column data from excel to notepad and separate data with semi colons?

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    vba to copy column data from excel to notepad and separate data with semi colons?

    I was hoping for some assistance with a macro that would copy data in a particular column in excel and then copy it to notepad inserting semi colons between the data. Ideally I would like the data in notepad
    to look like 1111111;1111112;11111113; etc instead in a list like (on top of one another) format; though if the first choice isn't possible then the list type would be my second choice.

    I found this code which pulls the data into notepad in a list type format (my 2nd choice) but i would need it to include the semi colons.
    Sub TestNotePad()
         '// The range to copy - written freehand so change as needed
         Range("P2:P100").Copy
         
         '// Start Notepad with focus
         Shell "notepad.exe", vbNormalFocus
         
         '// Send the standard CTRL+V. Pastes to the
         '// active window (Notepad, hopefully)
         SendKeys "^V"
         '// Back to the top of the file
         SendKeys "^{HOME}"
         
    End Sub
    Any help would be appreciated!
    Attached Files Attached Files
    Last edited by lilsnoop; 06-10-2021 at 11:18 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy specified data from notepad to excel
    By sarajun_88 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-12-2017, 11:04 PM
  2. Grouping data in excel and Copy pasting data in Notepad
    By harshit_0078 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2015, 09:49 AM
  3. Copy data from notepad into excel
    By platesigns in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2014, 12:54 PM
  4. =LEN Function for counting semi colons
    By TXNCPO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 07:06 PM
  5. Excel (2010) Macro to extract string between semi colons
    By merrener in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2012, 04:01 AM
  6. Excel Function - Adding Semi-Colons to Separate Cells
    By roundupriverranch in forum Excel General
    Replies: 3
    Last Post: 03-16-2012, 10:26 PM
  7. 24 hr time calculations without semi colons
    By nje in forum Excel General
    Replies: 4
    Last Post: 08-08-2011, 01:50 PM

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