Re: Copying text from Code module and pasting into MS Word

From: Peter (peterguy)
Date: 01/20/05

  • Next message: Jonathan West: "Re: Copying text from Code module and pasting into MS Word"
    Date: Thu, 20 Jan 2005 12:30:17 -0800
    
    

    Syntax highlighting is a function of the VBA IDE, not of Word. I've never know Word to preserve the syntax highlighting of the IDE when text is copied, but I may be ignorant of history.

    I, too am curious about the sometime support of the scroll wheel. A little googling found this site:
    http://www.mvps.org/dmcritchie/excel/scrollbar.htm
    look for "Scrolling Problems in the VBE ", about half-way down.

    hth,

    -Peter

    "Bill Allen" <ballense@cox.net> wrote in message news:_9UHd.5$G31.1@okepread05...
    > When I copy and pasted code from a module into a Word document, the pasted
    > text is all black even though the comments in the code module are green.
    >
    > First of all, I don't know if this is a VBA problem, Word problem or Windows
    > problem. Sorry for the ignorance.
    >
    > I used to be able to paste the code, green comment text and all, in the past
    > and I have NO IDEA what has changed with my system (besides everything since
    > the last time I tried this). Also, my scroll wheel on my mouse doesn't work
    > when I'm in the VBA editor window. Very strange.
    >
    > Yes, I've uninstalled, rebooted, reinstalled and rebooted.
    >
    > Windows XP Pro, SP2. Office XP SP3.
    >
    > Any clues? A setting or ??
    >
    > TIA,
    >
    > Bill Allen


  • Next message: Jonathan West: "Re: Copying text from Code module and pasting into MS Word"

    Relevant Pages

    • See my code in IDE?????
      ... right into VBA to create Word macros. ... it's not working in the VBA ... the VBA IDE does not seem to want to let me view ... Frustrating! ...
      (microsoft.public.word.vba.beginners)
    • scrolling in VBA Edotor
      ... This is probably a stupid question. ... scroll wheel to scroll down the code window in VBA. ...
      (microsoft.public.excel.programming)
    • scrolling in VBA editor
      ... This is probably a stupid question. ... scroll wheel to scroll down the code window in VBA. ...
      (microsoft.public.excel.misc)
    • Re: See my code in IDE?????
      ... right into VBA to create Word macros ... Getting To Grips With VBA Basics In 15 Minutes ... the VBA IDE does not seem to want to let me view ... Frustrating! ...
      (microsoft.public.word.vba.beginners)
    • Re: vbNullString vs. ""
      ... dann ist es genau so unsinnig in der VBA IDE an ... vbNullStr ing statt ″ ″ ... Laut Messungen gibt es ein Performance-Gewinn von über 70% bei ...
      (microsoft.public.de.vb)