Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
The following code converts any text which is input to uppercase regardless of where it is input within the workbook: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) On Error GoTo ErrHandler Application.EnableEvents = False For Each cell In Target With cell If Not .HasFormula Then cell.Value = StrConv(cell.Value, vbUpperCase) End If End With Next cell ErrHandler: Application.EnableEvents = True End Sub My problem is that it also converts the dates in column B from dd/mmm (UK format) to dd/mmm (US format) when entered. IE today's date is put in column B(automatically by code) as 06/Nov but it is changed immediately to 11/Jun. Can column B be omited from the code above or is there another way around this? Thanks -- Traa Dy Liooar Jock |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing the date format on the date table in a chart | Charts and Charting in Excel | |||
mm:ss keeps changing to a date format | Excel Discussion (Misc queries) | |||
changing format code?? please help!!! | Excel Discussion (Misc queries) | |||
changing date formatted as general number into date format | Excel Programming | |||
code to convert date from TEXT format (03-02) to DATE format (200203) | Excel Programming |