PC Review


Reply
Thread Tools Rate Thread

Data Validation - Propercase

 
 
Sandy
Guest
Posts: n/a
 
      7th Jun 2008
Hi
I have the following code and I am having difficulty in setting certain
cells as Propercase.
Not sure if this has any bearing but Cell E3 is actually E3:G3 merged as H3
is actually H3:J3 merged.
Any help would be good.

If Not Intersect(ActiveCell, Range("E3,H3,B6,E6,H6")) Is Nothing Then
Exit Sub

ElseIf EmptyRng(Sheets("Current Round").Range("E3,H3,B6,E6,H6")) Then
Exit Sub

Else
'*****make the contents of cells E3, H3, E6, H6 - Propercase *******
End If

TIA
Sandy

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      7th Jun 2008
If Not Intersect(Target, Range("E3,H3,B6,E6,H6")) Is Nothing Then
Exit Sub

ElseIf EmptyRng(Sheets("Current Round").Range("E3,H3,B6,E6,H6")) Then
Exit Sub

Else
Target.Value = Application.Proper(Target.Value)
End If


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Sandy" <(E-Mail Removed)> wrote in message
news:0B018058-EC91-4859-98CD-(E-Mail Removed)...
> Hi
> I have the following code and I am having difficulty in setting certain
> cells as Propercase.
> Not sure if this has any bearing but Cell E3 is actually E3:G3 merged as
> H3 is actually H3:J3 merged.
> Any help would be good.
>
> If Not Intersect(ActiveCell, Range("E3,H3,B6,E6,H6")) Is Nothing Then
> Exit Sub
>
> ElseIf EmptyRng(Sheets("Current Round").Range("E3,H3,B6,E6,H6")) Then
> Exit Sub
>
> Else
> '*****make the contents of cells E3, H3, E6, H6 - Propercase
> *******
> End If
>
> TIA
> Sandy



 
Reply With Quote
 
Sandy
Guest
Posts: n/a
 
      7th Jun 2008
Excellent Bob
Thank you very much
Sandy

"Bob Phillips" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If Not Intersect(Target, Range("E3,H3,B6,E6,H6")) Is Nothing Then
> Exit Sub
>
> ElseIf EmptyRng(Sheets("Current Round").Range("E3,H3,B6,E6,H6")) Then
> Exit Sub
>
> Else
> Target.Value = Application.Proper(Target.Value)
> End If
>
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my
> addy)
>
> "Sandy" <(E-Mail Removed)> wrote in message
> news:0B018058-EC91-4859-98CD-(E-Mail Removed)...
>> Hi
>> I have the following code and I am having difficulty in setting certain
>> cells as Propercase.
>> Not sure if this has any bearing but Cell E3 is actually E3:G3 merged as
>> H3 is actually H3:J3 merged.
>> Any help would be good.
>>
>> If Not Intersect(ActiveCell, Range("E3,H3,B6,E6,H6")) Is Nothing Then
>> Exit Sub
>>
>> ElseIf EmptyRng(Sheets("Current Round").Range("E3,H3,B6,E6,H6")) Then
>> Exit Sub
>>
>> Else
>> '*****make the contents of cells E3, H3, E6, H6 - Propercase
>> *******
>> End If
>>
>> TIA
>> Sandy

>
>

 
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
custom data validation on cells with data validation values AKrobbins Microsoft Excel Worksheet Functions 2 21st Jun 2011 04:20 PM
Where has Propercase gone!! Nigel Vandyk Microsoft Dot NET Compact Framework 2 23rd Apr 2007 11:29 PM
ProperCase =?Utf-8?B?ZWR3YXJkIGtlaXRo?= Microsoft Access Queries 9 14th Nov 2005 08:38 AM
propercase =?Utf-8?B?RGVubmlz?= Microsoft Dot NET Framework 1 16th Aug 2004 11:13 AM
When pasting data into a column with data validation I lose validation check Brad Microsoft Excel Misc 5 17th Apr 2004 01:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:37 AM.