Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
save QM code as a word file
#13
this should work for you uses wildcards
Code:
Copy      Help
Word.Find f=app.Selection.Find
f.ClearFormatting
f.Text="#sub *"
f.MatchWildcards = 1
rep
,if(!f.Execute)
,,break
,app.Selection.ParagraphFormat.Borders.Item(wdBorderTop).LineStyle = wdLineStyleSingle

or maybe even better .. finds #sub that is a specific color
Code:
Copy      Help
Word.Find f=app.Selection.Find
f.ClearFormatting
f.Font.Color = 4210943
f.Text="#sub"
rep
,if(!f.Execute)
,,break
,app.Selection.ParagraphFormat.Borders.Item(wdBorderTop).LineStyle = wdLineStyleSingle


Messages In This Thread
save QM code as a word file - by macman - 01-18-2021, 08:05 AM
RE: save QM code as a word file - by macman - 01-19-2021, 12:53 AM
RE: save QM code as a word file - by Kevin - 01-19-2021, 01:37 AM
RE: save QM code as a word file - by macman - 01-19-2021, 03:09 AM
RE: save QM code as a word file - by Kevin - 01-19-2021, 05:33 AM
RE: save QM code as a word file - by macman - 01-19-2021, 11:07 PM
RE: save QM code as a word file - by macman - 01-20-2021, 08:37 AM
RE: save QM code as a word file - by macman - 01-21-2021, 05:29 AM
RE: save QM code as a word file - by Kevin - 01-21-2021, 08:29 AM
RE: save QM code as a word file - by macman - 01-21-2021, 08:39 AM
RE: save QM code as a word file - by macman - 01-21-2021, 10:12 AM
RE: save QM code as a word file - by macman - 01-22-2021, 06:25 AM
RE: save QM code as a word file - by Kevin - 01-22-2021, 11:44 PM
RE: save QM code as a word file - by macman - 01-23-2021, 12:34 AM
RE: save QM code as a word file - by Kevin - 01-23-2021, 12:42 AM
RE: save QM code as a word file - by macman - 01-23-2021, 12:49 AM
RE: save QM code as a word file - by Kevin - 01-23-2021, 12:53 AM
RE: save QM code as a word file - by macman - 01-23-2021, 12:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)