Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-09-2013, 06:17 AM
gmaxey gmaxey is offline Testing for a printable character Windows 7 32bit Testing for a printable character Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oChar As Range
For Each oChar In Selection.Range.Characters
  Debug.Print Asc(oChar) 'For information.  Remove in final code.
  Select Case Asc(oChar)
    Case 65 To 90, 97 To 122, 48 To 57 'AZaz0-9
      oChar.Font.Color = wdColorRed
    Case 9, 10, 11, 13, 32, 160
      'Skip
    Case Else
      '????
  End Select
Next oChar
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printable Area issues zaineyma Word 3 12-12-2012 09:11 AM
Testing for a printable character HELP/ADVICE NEEDED. Testing Excel Accessibility guidelines cmc89 Excel 1 03-29-2012 03:41 PM
Printable Entry Form eJames Excel 1 01-07-2010 09:50 AM
Making template that is not printable Askaleto Word 0 10-14-2009 11:45 AM
Defining Printable Areas OfficeUser00939 Word 5 06-29-2009 09:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft