PC Review


Reply
Thread Tools Rate Thread

Convert text to all caps

 
 
Patrick C. Simonds
Guest
Posts: n/a
 
      8th Oct 2008
Is there any way to convert all text, in the range B3:M2500, to all capital
letters from within a macro?

 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      8th Oct 2008
Hi,

Right click your sheet tab, view code and paste this in and run it

Sub standard()
Set myrange = Range("B3:M2500")
For Each c In myrange
c.Formula = UCase(c.Formula)
Next
End Sub

Mike

"Patrick C. Simonds" wrote:

> Is there any way to convert all text, in the range B3:M2500, to all capital
> letters from within a macro?
>
>

 
Reply With Quote
 
dmoney
Guest
Posts: n/a
 
      8th Oct 2008
Sub tst()
Dim rng As String
Range("b3").Select
Nex:
Do Until ActiveCell.Row = 2501
col = Mid(ActiveCell.Address, 2, 1)
rng = ActiveCell.Value
ActiveCell.Value = UCase(rng)
ActiveCell.Offset(1, 0).Activate
Loop
ActiveCell.Offset(-2498, 1).Activate
If col = "N" Then End
GoTo Nex

End Sub


"Patrick C. Simonds" wrote:

> Is there any way to convert all text, in the range B3:M2500, to all capital
> letters from within a macro?
>
>

 
Reply With Quote
 
Richard Schollar
Guest
Posts: n/a
 
      8th Oct 2008
Hi Patrick

For Each c in
Range("B3:M2500").SpecialCells(xlCellTypeConstants,xlTextValues)
c.Value = UCase(c.Value)
Next c


Richard


"Patrick C. Simonds" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there any way to convert all text, in the range B3:M2500, to all
> capital letters from within a macro?


 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      8th Oct 2008
Hi,

I hope there are no formula in the range, if there are this converts them to
values.

Mike

"dmoney" wrote:

> Sub tst()
> Dim rng As String
> Range("b3").Select
> Nex:
> Do Until ActiveCell.Row = 2501
> col = Mid(ActiveCell.Address, 2, 1)
> rng = ActiveCell.Value
> ActiveCell.Value = UCase(rng)
> ActiveCell.Offset(1, 0).Activate
> Loop
> ActiveCell.Offset(-2498, 1).Activate
> If col = "N" Then End
> GoTo Nex
>
> End Sub
>
>
> "Patrick C. Simonds" wrote:
>
> > Is there any way to convert all text, in the range B3:M2500, to all capital
> > letters from within a macro?
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Big caps into small caps Ag Microsoft Word New Users 3 27th Mar 2009 09:30 PM
How to convert All Caps to just Initial Caps? Padre Microsoft Access 2 8th Jul 2008 01:39 PM
How do convert an entire column of text in Excel to all caps? =?Utf-8?B?Q2Fycmll?= Microsoft Excel Misc 10 17th Mar 2006 11:06 PM
HOW DO I CONVERT NORMAL TEXT INTO ALL CAPS? =?Utf-8?B?ZGF2ZXlsZWU=?= Microsoft Excel Worksheet Functions 2 21st Nov 2005 11:21 PM
How can I convert all Caps to first letter caps in Excel? =?Utf-8?B?RmVubGpwMjY=?= Microsoft Excel Worksheet Functions 5 30th Jun 2005 11:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 AM.