Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 06-18-2015, 02:25 AM
gmayor's Avatar
gmayor gmayor is offline How to replace a letter to random letter with different color? Windows 7 64bit How to replace a letter to random letter with different color? Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Change
Code:
    If Len(strChar) > 1 Or Not IsLetter(asc(strChar)) Then
        MsgBox "Enter a single character from the ranges A-Z or a-z only", vbCritical
        GoTo Start
    End If
to
Code:
    If Len(strChar) > 1 Then
        MsgBox "Enter a single character only", vbCritical
        GoTo Start
    End If
and the IsLetter function is no longer required
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Tags
font color, random, replace all

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i get the letter in the centre rich_cirillo Word 3 03-09-2014 06:25 PM
How to replace a letter to random letter with different color? Find and replace with a macro, problem with letter case garcanrya Word VBA 2 01-10-2014 05:40 AM
How to replace a letter to random letter with different color? every letter different color skan Word VBA 8 03-28-2013 04:16 AM
How to replace a letter to random letter with different color? Business letter MK_Huef Word 1 03-27-2012 03:27 AM
How to replace a letter to random letter with different color? Replace is capitalizing the first letter of the first word Beachhouse Word 1 02-07-2012 03:36 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:37 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