Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dino Thomas
 
Posts: n/a
Default colums in uppercase only

I am trying to create a spreadsheet where all text entered in columns A,C,
and H from row 5 to row 50 shows in uppercase
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
With Target
If .Column = 1 Or .Column = 3 Or .Column = 8 Then
If .Row = 5 And .Row <= 50 Then
.Value = UCase(.Value)
End If
End If
End With

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.




--
HTH

Bob Phillips

"Dino Thomas" wrote in message
...
I am trying to create a spreadsheet where all text entered in columns A,C,
and H from row 5 to row 50 shows in uppercase



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
Excel data not transfering to Word. Colums are expanded. carolsue1313 New Users to Excel 2 June 24th 05 08:16 PM
colums in xcel **- kingdom -** Excel Discussion (Misc queries) 2 May 26th 05 01:57 PM
i want my excel colums to be rows peter Excel Worksheet Functions 1 March 29th 05 10:37 PM
How do I name the colums and rows? Cin3 New Users to Excel 5 January 5th 05 11:09 PM
switch colums and rows susanne in new jersey New Users to Excel 1 December 22nd 04 08:39 PM


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

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

About Us

"It's about Microsoft Excel"