Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Capitalizing Letters in multiple column data

I am trying to capitalize a single letter across multiple columns.. ie: any
data entered in column 7, 11, 15, 19, 23 and so on (in multiples of 4), I
want to automatically convert to the Capital equivalent. Each column has 250
lines as well.

From posts I've read, I understand that this can only be done through a
macro or through Visual Basic. Unfortunately, I am not that well versed in
the code for either.

Harald Staff provided this to someone else, and altho it will work for one
column, I don't know how to make it work for all.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
For Each cel In Target
If cel.Column = 2 Then
If cel.Formula < UCase$(cel.Formula) Then _
cel.Formula = UCase$(cel.Formula)
End If
Next
End Sub

Can anyone help????
Thanks so much,
Karen
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Capitalizing Letters in multiple column data

Also, the Proper function is not suitable for what I need... thanks.

"Karenatallied" wrote:

I am trying to capitalize a single letter across multiple columns.. ie: any
data entered in column 7, 11, 15, 19, 23 and so on (in multiples of 4), I
want to automatically convert to the Capital equivalent. Each column has 250
lines as well.

From posts I've read, I understand that this can only be done through a
macro or through Visual Basic. Unfortunately, I am not that well versed in
the code for either.

Harald Staff provided this to someone else, and altho it will work for one
column, I don't know how to make it work for all.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
For Each cel In Target
If cel.Column = 2 Then
If cel.Formula < UCase$(cel.Formula) Then _
cel.Formula = UCase$(cel.Formula)
End If
Next
End Sub

Can anyone help????
Thanks so much,
Karen

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default Capitalizing Letters in multiple column data

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
For Each cel In Target
If cel.Column Mod 4 = 3 Then
If cel.Formula < UCase$(cel.Formula) Then _
cel.Formula = UCase$(cel.Formula)
End If
Next
End Sub


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Karenatallied" wrote in message
...
I am trying to capitalize a single letter across multiple columns.. ie:

any
data entered in column 7, 11, 15, 19, 23 and so on (in multiples of 4), I
want to automatically convert to the Capital equivalent. Each column has

250
lines as well.

From posts I've read, I understand that this can only be done through a
macro or through Visual Basic. Unfortunately, I am not that well versed

in
the code for either.

Harald Staff provided this to someone else, and altho it will work for one
column, I don't know how to make it work for all.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
For Each cel In Target
If cel.Column = 2 Then
If cel.Formula < UCase$(cel.Formula) Then _
cel.Formula = UCase$(cel.Formula)
End If
Next
End Sub

Can anyone help????
Thanks so much,
Karen



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manual control of link updating for downloaded quotes? dk_ Excel Discussion (Misc queries) 9 November 15th 06 01:04 PM
Sorting Data From One Column into Multiple Columns Justin Hoffmann Excel Worksheet Functions 2 July 12th 06 04:15 PM
Multiple columns of data into one long column beatrice25 Excel Discussion (Misc queries) 2 May 21st 06 01:18 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM


All times are GMT +1. The time now is 10:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"