Results 1 to 11 of 11

Thread: Copy Code and Formatting

  1. #1
    Lively Member
    Join Date
    Oct 04
    Posts
    79

    Copy Code and Formatting

    Hi there....

    Im doing a school project and i was wondering if there was anyway of copying the code form Visual Basic into Word with all of the formatting, e.g. coulours and font and stuff. Cos when i copy it it just all comes out as normal un formatted text...

    Cheers for any help...

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 03
    Location
    Wales
    Posts
    1,763

    Re: Copy Code and Formatting

    No, I do not think you can

    You could probably write a Macro in Word that could do it though


    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  3. #3
    Lively Member
    Join Date
    Oct 04
    Posts
    79

    Re: Copy Code and Formatting

    cheers man, i would have no idea how to do that so ill just leave it... cheers tho

  4. #4
    Addicted Member Max_aka_NOBODY's Avatar
    Join Date
    Jul 04
    Location
    Amman, Jordan
    Posts
    179

    Re: Copy Code and Formatting

    There're a few of those on the web though. Like the one on http://artsoft.agava.ru/vbcodeformat.htm. I haven't tried it personally, but from the sound of it, it works well.

  5. #5
    Lively Member
    Join Date
    Oct 04
    Posts
    79

    Re: Copy Code and Formatting

    Oh i found a way of doing it.... Bit awkward but hayho...

    If you create a new thread here... then use the VBcode function to add your code, then preview your post and copy it,,, it works fine, thought i would let you no if anyone else wanted to do it... theres still probably an easyier way

    cheers

  6. #6
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 03
    Location
    Wales
    Posts
    1,763

    Re: Copy Code and Formatting

    Quote Originally Posted by golyath
    Oh i found a way of doing it.... Bit awkward but hayho...

    If you create a new thread here... then use the VBcode function to add your code, then preview your post and copy it,,, it works fine, thought i would let you no if anyone else wanted to do it... theres still probably an easyier way

    cheers

    Well, if I find one I'll post it here or PM you with the solution

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  7. #7
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 00
    Location
    Buenos Aires, Argentina
    Posts
    6,810

    Re: Copy Code and Formatting

    I have an ASP page that does the same (it's not online yet). However... there won't be much difference between pasting it here or in my page.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  8. #8
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 00
    Location
    Buenos Aires, Argentina
    Posts
    6,810

    Re: Copy Code and Formatting

    Quote Originally Posted by Mc Brain
    I have an ASP page that does the same (it's not online yet). However... there won't be much difference between pasting it here or in my page.
    Just in case anyone needs it: http://emilianomartin.com.ar/Encode/Encode.aspIf you find any word that's not colored... let me know, please.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  9. #9
    New Member
    Join Date
    Aug 12
    Posts
    2

    Re: Copy Code and Formatting

    Cleared
    Last edited by Sayoshi; Aug 10th, 2012 at 06:14 AM. Reason: Accidental Posting

  10. #10
    New Member
    Join Date
    Aug 12
    Posts
    2

    Re: Copy Code and Formatting

    Sorry, was using the technique described here to format my code, and accidentally posted. My apologies.

  11. #11
    PowerPoster
    Join Date
    Jun 01
    Location
    Trafalgar, IN
    Posts
    3,438

    Re: Copy Code and Formatting

    Attached is an app I did many years back so I could post formatted code on another site. Viewing the source code generated by the link that Emiliano posted, I would say we are using the technique to do the same thing.
    Attached Files Attached Files

Posting Permissions

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