![]() |
#15
|
|||
|
|||
![]() Quote:
I put the numbers in back to front i.e. &H40FF becomes &HFF0400 and it works? I now get blue If you scroll down https://htmlcolorcodes.com/ about the middle you get # XX XX XX by putting them into my macro back to front the colours show up. It deletes the leading '0's so I am going to keep playing and see what I find. It accepts &HFF for red (i.e. 0000FF with the leading 0s' removed) It accepts &HFF0000 for blue but it won't accept &HFF00 for green (even if I put &H00FF00) It accepts &H04FF00 for a paler green? (that it changes to &H4FF00) and &H01FF00 (that it changes to &H1FF00) &H018000 is a better green. changed to &H18000. I am also looking at size I opened up your program so the different instructions are in blocks of 4 like this .Replacement.ClearFormatting .Text = "\[b\](*)\[/b\]" .Replacement.Font.Bold = True .Execute Replace:=wdReplaceAll .Replacement.ClearFormatting .Text = "\(*)\" (size code removed to stop it changing size) .Replacement.Font.Size = &H16 .Execute Replace:=wdReplaceAll It looks as if different forums use different ways of changing size, this one uses HTML Code:
[SIZE="5"][/SIZE] HTML Code:
[size=150][/size] What do you think is the word equivalent of this? I tried &H16 as above .Replacement.Font.Size = &H16 but the macro crashes with that? Last edited by matelot2; 04-02-2018 at 03:08 PM. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
APA format without cover page or references? | SoMany | Word | 0 | 03-02-2018 10:36 AM |
Running Head AND Page Number on First Page of Document (for APA Format) with Word 2003 | DBinSJ | Word | 3 | 11-23-2016 11:52 AM |
word page format | bakhtawar12 | Word | 1 | 01-22-2015 07:08 PM |
![]() |
fiedlerw01 | Word | 1 | 10-23-2012 04:10 AM |
Web page format | Microsoftenquirer1000 | Word | 1 | 10-13-2012 06:38 AM |