sexyuser1
sexyuser1

Reputation: 29

Print Excel VBA code in Word with same color

Is it possible to export my VBA code into Microsoft Word in order to print it. Is there a way to keep the same color formatting? I can copy/paste it, but i must select and change the text-color every single time for all the lines (it's long!).

I wonder how the pros do it...

Upvotes: 0

Views: 1239

Answers (1)

Dave Arkell
Dave Arkell

Reputation: 3980

If you don't fancy installing anything, you could try https://tohtml.com/vbasic/ which I just found.

Copy and paste all your code into the box, press 'Highlight', and copy and paste the result from the preview area.

Upvotes: 2

Related Questions