Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Win XP Pro
Office 2003 Using "Excel" and wish to select any text in a worksheet to ALTER the case to either upper or lower. When using "Word" it is easy via the menu. Is there a menu driven option in Excel please, as I do not like the idea of using a function for this purpose. TIA |
#2
![]() |
|||
|
|||
![]()
=upper("venkat") returns VENKAT
=upper(a1) returns the text in A1 in upper case similary lower proper will turn the first letter into uppercase is this what you want;. Terry wrote in message ... Win XP Pro Office 2003 Using "Excel" and wish to select any text in a worksheet to ALTER the case to either upper or lower. When using "Word" it is easy via the menu. Is there a menu driven option in Excel please, as I do not like the idea of using a function for this purpose. TIA |
#3
![]() |
|||
|
|||
![]()
No thanks...do not wish to use any formulae for this task, as I stated I
wish to be able to select single or multiple text entries, then have an OPTION to change the case to whatever I need. Terry "R.VENKATARAMAN" wrote in message ... =upper("venkat") returns VENKAT =upper(a1) returns the text in A1 in upper case similary lower proper will turn the first letter into uppercase is this what you want;. Terry wrote in message ... Win XP Pro Office 2003 Using "Excel" and wish to select any text in a worksheet to ALTER the case to either upper or lower. When using "Word" it is easy via the menu. Is there a menu driven option in Excel please, as I do not like the idea of using a function for this purpose. TIA |
#4
![]() |
|||
|
|||
![]()
"Terry" wrote in message
... No thanks...do not wish to use any formulae for this task, as I stated I wish to be able to select single or multiple text entries, then have an OPTION to change the case to whatever I need. Terry You have two options. 1. Write some VBA and assign a button to it, or, 2. Re-design Excel. |
#5
![]() |
|||
|
|||
![]()
Far behond me......but thanks for the short and to the point answer.
Terry "Gordon" wrote in message ... "Terry" wrote in message ... No thanks...do not wish to use any formulae for this task, as I stated I wish to be able to select single or multiple text entries, then have an OPTION to change the case to whatever I need. Terry You have two options. 1. Write some VBA and assign a button to it, or, 2. Re-design Excel. |
#6
![]() |
|||
|
|||
![]()
"Terry" wrote
Far behond me......but thanks for the short and to the point answer. .... "Gordon" wrote .... 1. Write some VBA and assign a button to it, Ah, no need to write, just source and use what others have written, giving due credit, of course. See one way where the entire lot has been packaged nicely <g in my response in the other thread .. -- Rgds Max xl 97 --- GMT+8, 1° 22' N 103° 45' E xdemechanik <atyahoo<dotcom ---- |
#7
![]() |
|||
|
|||
![]()
"Terry" wrote
...do not wish to use any formulae for this task, as I stated I wish to be able to select single or multiple text entries, then have an OPTION to change the case to whatever I need. One way - try the sub SwitchCase* below, which enables one to toggle the case of selected cells *sub posted by Frank Isaacs '97 Steps -------- 1. Press Alt + F11 to go to VBE 2. Click Insert Module 3. Copy Paste the sub below (everything between the dotted lines) into the white empty space in the right-side window -------begin vba------ Sub SwitchCase() 'Frank Isaacs May '97 'Select the cells and run 'Cells' case toggle order: 'if Lower Upper 'if Upper Proper 'if Proper** Lower '**or neither of the 3 case types Dim Cell As Range For Each Cell In Selection Select Case True Case Cell = LCase(Cell) 'It's lowercase Cell = UCase(Cell) Case Cell = UCase(Cell) 'It's uppercase Cell = Application.Proper(Cell) Case Else 'It's neither upper nor lower Cell = LCase(Cell) End Select Next End Sub -------end vba------ 4. Press Alt + Q to return to Excel Running the macro ---------------------- 5. Select the range of cells, e.g.: select A1:D200 (Or, to select entire sheet, press Ctrl + A. The sub will work even on discontiguous selections/ranges.) 6. Press Alt + F8 (or click Tools Macro Macros) In the dialog box: Click on "SwitchCase" Run (or just double-click on "SwitchCase") 7. When complete, the text-case of the selected cells will be converted depending on their existing case, viz.: Cells' case toggle order: ---------------------------------- if Lower Upper if Upper Proper if Proper* Lower *or neither of the 3 case types To further toggle the case, just run / re-run the sub over on the selected range(s) --------------------- To make it easier to run / re-run the sub, we could also assign the sub to a button drawn from the Forms* toolbar in the sheet (*If necesssary, activate toolbar via View Toolbars Forms) Or, assign to an autoshape drawn in the sheet (via right-click on autoshape Assign Macro) -- Rgds Max xl 97 --- GMT+8, 1° 22' N 103° 45' E xdemechanik <atyahoo<dotcom ---- |
#8
![]() |
|||
|
|||
![]()
Max.......Thank you for the substantial reply.
Terry "Max" wrote in message ... "Terry" wrote ...do not wish to use any formulae for this task, as I stated I wish to be able to select single or multiple text entries, then have an OPTION to change the case to whatever I need. One way - try the sub SwitchCase* below, which enables one to toggle the case of selected cells *sub posted by Frank Isaacs '97 Steps -------- 1. Press Alt + F11 to go to VBE 2. Click Insert Module 3. Copy Paste the sub below (everything between the dotted lines) into the white empty space in the right-side window -------begin vba------ Sub SwitchCase() 'Frank Isaacs May '97 'Select the cells and run 'Cells' case toggle order: 'if Lower Upper 'if Upper Proper 'if Proper** Lower '**or neither of the 3 case types Dim Cell As Range For Each Cell In Selection Select Case True Case Cell = LCase(Cell) 'It's lowercase Cell = UCase(Cell) Case Cell = UCase(Cell) 'It's uppercase Cell = Application.Proper(Cell) Case Else 'It's neither upper nor lower Cell = LCase(Cell) End Select Next End Sub -------end vba------ 4. Press Alt + Q to return to Excel Running the macro ---------------------- 5. Select the range of cells, e.g.: select A1:D200 (Or, to select entire sheet, press Ctrl + A. The sub will work even on discontiguous selections/ranges.) 6. Press Alt + F8 (or click Tools Macro Macros) In the dialog box: Click on "SwitchCase" Run (or just double-click on "SwitchCase") 7. When complete, the text-case of the selected cells will be converted depending on their existing case, viz.: Cells' case toggle order: ---------------------------------- if Lower Upper if Upper Proper if Proper* Lower *or neither of the 3 case types To further toggle the case, just run / re-run the sub over on the selected range(s) --------------------- To make it easier to run / re-run the sub, we could also assign the sub to a button drawn from the Forms* toolbar in the sheet (*If necesssary, activate toolbar via View Toolbars Forms) Or, assign to an autoshape drawn in the sheet (via right-click on autoshape Assign Macro) -- Rgds Max xl 97 --- GMT+8, 1° 22' N 103° 45' E xdemechanik <atyahoo<dotcom ---- |
#9
![]() |
|||
|
|||
![]()
You're welcome, Terry !
Hope it's enough to get it working for you <g Thanks for the feedback .. -- Rgds Max xl 97 --- GMT+8, 1° 22' N 103° 45' E xdemechanik <atyahoo<dotcom ---- "Terry" wrote in message ... Max.......Thank you for the substantial reply. Terry |
#11
![]() |
|||
|
|||
![]()
Thanks all posters, and wish to update this group:
Shailesh Shah provided the answer I was looking for with her "ADD-IN", posted here 1/10/05. Terry "Terry" wrote in message ... Win XP Pro Office 2003 Using "Excel" and wish to select any text in a worksheet to ALTER the case to either upper or lower. When using "Word" it is easy via the menu. Is there a menu driven option in Excel please, as I do not like the idea of using a function for this purpose. TIA |
#12
![]() |
|||
|
|||
![]()
Correction:
Shah did not reply via this NG, as stated in my earlier update post.(email) Terry "Terry" wrote in message ... Thanks all posters, and wish to update this group: Shailesh Shah provided the answer I was looking for with her "ADD-IN", posted here 1/10/05. Terry "Terry" wrote in message ... Win XP Pro Office 2003 Using "Excel" and wish to select any text in a worksheet to ALTER the case to either upper or lower. When using "Word" it is easy via the menu. Is there a menu driven option in Excel please, as I do not like the idea of using a function for this purpose. TIA |
#13
![]() |
|||
|
|||
![]()
I have tried a small com-addin for changing case in XL at the following
address, and works a treat: http://www.members.lycos.co.uk/shahweb/ Terry "Terry" wrote in message ... Correction: Shah did not reply via this NG, as stated in my earlier update post.(email) Terry "Terry" wrote in message ... Thanks all posters, and wish to update this group: Shailesh Shah provided the answer I was looking for with her "ADD-IN", posted here 1/10/05. Terry "Terry" wrote in message ... Win XP Pro Office 2003 Using "Excel" and wish to select any text in a worksheet to ALTER the case to either upper or lower. When using "Word" it is easy via the menu. Is there a menu driven option in Excel please, as I do not like the idea of using a function for this purpose. TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I NEED HELP with the SPELLNUMBER Function | Excel Worksheet Functions | |||
EXCEL:NUMBER TO GREEK WORDS | Excel Worksheet Functions | |||
How can i change this VBA project According to Indian Numeric | Excel Discussion (Misc queries) | |||
Conversion | Excel Worksheet Functions | |||
Convert Numeric into Text | Excel Worksheet Functions |