+ Reply to Thread
Results 1 to 4 of 4

Maintaining carriage returns after copy and past into Notepad type program

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    canton, ohio
    MS-Off Ver
    2013
    Posts
    2

    Maintaining carriage returns after copy and past into Notepad type program

    Hi,

    I have a project that I'm undertaking, and am running into a bit of trouble finding all the solutions to my many issues. One in particular is becoming a truely large thorn in my side.
    My scenario is this:

    I'm attempting to create a tool to allow individuals to documents their actions for working written documents, so that a standardized format and requirements can be met by all. The program thats used to keep track of all files is text based, similar to notepad. (This CANNOT be changed)

    I'm using a series of fill-in boxes and radio buttons, in combinations with several =if formulas to generate an entry "documenting" your action, so that this can be copied and pasted into our "notepad" for permanent record. All of my results in being generate in a column of cells, each corresponding to the fill-ins, however my difficult is length of results vs the allowed character line in our "notepad".
    MY current thought is to use one cell, and somehow limit or auto insert a char(10) entry after a predetermined number of characters. This way the hard return is copied in the outcome and hopefully correctly interpreted by out system with a return instead of just running off.

    Any help or ideas, or even a direction would be greatly be appreciate. ;-)

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Maintaining carriage returns after copy and past into Notepad type program

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.
    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    12-09-2015
    Location
    canton, ohio
    MS-Off Ver
    2013
    Posts
    2

    Re: Maintaining carriage returns after copy and past into Notepad type program

    Wow, thank you so much, worked perfectly, great instructions, and best of all copied over exactly as intended. I'd mark it solved, just one more thing, is it possible to either, assign that module to also, highlight and copy the outcomes, or could it be tied into a separate macro to first do that then your module?

    My boss's have little faith in people, and to be implemented it must be idiot proof, so I've already created a button, with a macro which highlight and copy the outcome.

    It seems like this would have to be accomplished after the module runs?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Maintaining carriage returns after copy and past into Notepad type program

    Quote Originally Posted by Bruiser99b View Post
    is it possible to either, assign that module to also, highlight and copy the outcomes
    Added this piece of code in the end of the provided code to take care of the copy process.

    Please Login or Register  to view this content.
    Replace your current code with the below one.

    Please Login or Register  to view this content.

+ 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. how to copy selected notepad text and paste it in other notepad with macro
    By Guru232 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 04-24-2013, 04:43 AM
  2. Carriage Returns when concatenating
    By Wendy Collins in forum Excel General
    Replies: 2
    Last Post: 11-17-2011, 01:48 PM
  3. Carriage Returns
    By Highbury_White in forum Excel General
    Replies: 3
    Last Post: 02-24-2010, 10:09 AM
  4. How Do I Get Rid of Carriage Returns?
    By Ocean Zhang in forum Excel General
    Replies: 23
    Last Post: 07-02-2009, 10:49 AM
  5. [SOLVED] Delete Carriage Returns
    By Andre in forum Excel General
    Replies: 4
    Last Post: 12-01-2005, 07:35 PM
  6. VBA: Concatenate with carriage returns
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2005, 09:05 AM
  7. Carriage returns
    By tracyt620 in forum Excel General
    Replies: 1
    Last Post: 07-07-2005, 09:52 AM
  8. Prn file carriage return deletion within notepad
    By monster in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2005, 05:05 PM

Tags for this Thread

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