Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel Formatting in Drop Down Lists

I am using various drop down lists in my spreadsheet however when a user
types text rather than selecting the entry from the drop down list the
formatting is not constant. For example. if Jun (proper case) is listed in
my drop down list, the user can enter jun (all lower case) in the cell and it
accepts it. The pivot table reports then have two distinct entries, Jun and
jun.

How can I require the formatting to be consistent with that of the drop down
list?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel Formatting in Drop Down Lists

You could try educating users to only select from list.

Failing that.......with DV lists being case-insensitive.......you could add
some event code to change entries to Proper Case when they are made.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Const sINPUTS As String = "A1,B2,C3,D4,E5,F6"
If Not Intersect(Target, Me.Range(sINPUTS)) Is Nothing Then
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = Application.Proper(Target.Formula)
End If
ErrHandler:
Application.EnableEvents = True
End Sub

Right-click on the sheet tab and "View Code". Copy/paste the code into that
module.

Edit the range to suit then Alt + q to return to the Excel window.


Gord Dibben MS Excel MVP


On Wed, 20 May 2009 08:44:01 -0700, Lori Brehmer <Lori
wrote:

I am using various drop down lists in my spreadsheet however when a user
types text rather than selecting the entry from the drop down list the
formatting is not constant. For example. if Jun (proper case) is listed in
my drop down list, the user can enter jun (all lower case) in the cell and it
accepts it. The pivot table reports then have two distinct entries, Jun and
jun.

How can I require the formatting to be consistent with that of the drop down
list?


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 Drop Down Lists Help LauraB Excel Worksheet Functions 1 December 13th 08 04:54 PM
Drop down lists in excel Judy Excel Discussion (Misc queries) 3 November 24th 08 10:47 PM
Excel Drop-down lists AMSH Excel Discussion (Misc queries) 0 November 18th 08 03:09 AM
Excel drop down lists DougMcD Excel Discussion (Misc queries) 8 February 27th 08 08:26 PM
Multiple lists with repeated values for dependet drop down lists mcmanusb Excel Worksheet Functions 1 September 29th 06 12:13 AM


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