Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 08-29-2014, 09:32 PM
gmayor's Avatar
gmayor gmayor is offline How to get the Right function to return a string that has UPPERCASE letters only Windows 7 64bit How to get the Right function to return a string that has UPPERCASE letters only Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
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

Quote:
Originally Posted by adj View Post
I've tried a couple of different major approaches (one approach is Find; 2nd approach is to have the macro look at each word). I'm going to try to figure out which approach is best (or whether a combo is necessary) ........ the Right function is any UPPERCASE letter--i.e., what to use between the quotes (after the '=' sign) in the Right function.
I don't see how processing by word is going to help. It still has the same basic issue that there are two disparate data sequence type BC-3, ABC-5, BC-003 and DA-378-A, which will require separate processes.

Also processing sequentially in this manner is very slow compared with FIND.

One way to check whether the Right string value is upper case is to compare the upper case version with the actual value e.g.

If Right(strText, 1) = Right(UCase(strText), 1) Then
MsgBox "Upper Case"
Else
MsgBox "Lower case"
End If

As Paul also has asked, what are you going to do with the strings found?
__________________
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
right function, upper



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the Right function to return a string that has UPPERCASE letters only Uppercase formula? clements55 Excel 1 08-20-2014 11:34 PM
How to get the Right function to return a string that has UPPERCASE letters only Way to search for a string in text file, pull out everything until another string? omahadivision Excel Programming 12 11-23-2013 12:10 PM
How to get the Right function to return a string that has UPPERCASE letters only Can I use the filter function to separate letters into separate files? drhauser Mail Merge 2 12-14-2011 02:18 PM
How to get the Right function to return a string that has UPPERCASE letters only Day and Month to Uppercase Andy2011 Word VBA 1 07-22-2011 04:34 PM
How to get the Right function to return a string that has UPPERCASE letters only Macro or Function to know wether a string is included in a text Eduardo Word VBA 5 06-15-2009 01:55 AM

Other Forums: Access Forums

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