LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Auto Capital Letter in a cell

I have designed my worksheet by using format "Merge Cell" like
A B C D E F G H I
J K
1 PAN NO. ABCDEF1234G TAN NO. VWXY012345Z
From B1 to E1 & G1 to K1 is formated cell "Merge". I want whenever write in
B1 or G1 it will be automatically Capital Letter. For this purpose I asked
for help & got a VBA code from this forum & also have used to my worksheet
(by pressing Alt+f11). The code is as follows -
Private Sub Worksheet_Change(ByVal Target As Range)
Set r = Range("b1:E1")
r = Range("g1:k1")
Application.EnableEvents = False
If Application.WorksheetFunction.IsText(r) Then
r.Value = UCase(r.Value)
End If
Application.EnableEvents = True
End Sub
But it's not working means it's not being automatic capital letter. Help me
what should I do.
 
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
Auto capital letter in a cell Montu Excel Worksheet Functions 3 December 22nd 07 11:21 PM
automatic capital letter in a cell capital letter Excel Worksheet Functions 1 November 6th 07 10:19 AM
New Validation option to format 1st letter as Capital letter Jeff Excel Discussion (Misc queries) 5 July 13th 06 05:11 AM
Default Capital letter for 1st letter of a word Jeff Excel Discussion (Misc queries) 6 July 10th 06 08:36 AM
Turn to capital letter SBárbara Excel Discussion (Misc queries) 2 June 22nd 06 05:18 PM


All times are GMT +1. The time now is 05:27 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"