Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello! I wrote this simple code to change the case in a cell to proper when a macro button is pushed, but it doesn't work. I don't get any errors, but when I run the macro, the screen just blinks like something is happening, but I don't know what? Where's the problem? Sub CaseChange() Formula = "Proper(A1)" End Sub Thanks, EMoe -- EMoe ------------------------------------------------------------------------ EMoe's Profile: http://www.excelforum.com/member.php...o&userid=23183 View this thread: http://www.excelforum.com/showthread...hreadid=373999 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You haven't refenced a cell. All that code will do is place the string "Proper(A1)" in the variable Formula. Perhaps something like this? Code: -------------------- Sub MakeProper() ActiveCell = WorksheetFunction.Proper(ActiveCell.Value) End Sub -------------------- -- Norie ------------------------------------------------------------------------ Norie's Profile: http://www.excelforum.com/member.php...o&userid=19362 View this thread: http://www.excelforum.com/showthread...hreadid=373999 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You might want to take a look at
http://www.mvps.org/dmcritchie/excel/proper.htm as a macro would normally work with a selection chosen before running the macro. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Norie" wrote in message ... You haven't refenced a cell. All that code will do is place the string "Proper(A1)" in the variable Formula. Perhaps something like this? Code: -------------------- Sub MakeProper() ActiveCell = WorksheetFunction.Proper(ActiveCell.Value) End Sub -------------------- -- Norie ------------------------------------------------------------------------ Norie's Profile: http://www.excelforum.com/member.php...o&userid=19362 View this thread: http://www.excelforum.com/showthread...hreadid=373999 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This works fine. But what if I wanted to change all the text in a range of cells e.g from A1 to A30? EMo -- EMo ----------------------------------------------------------------------- EMoe's Profile: http://www.excelforum.com/member.php...fo&userid=2318 View this thread: http://www.excelforum.com/showthread.php?threadid=37399 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I change from upper case to proper case in excel 2002 | Excel Discussion (Misc queries) | |||
excel'03 how to convert a column from upper case to proper case | Excel Discussion (Misc queries) | |||
Excel: How do I change all upper case ss to proper case? | Excel Worksheet Functions | |||
Changing Upper case to Proper Case | Excel Worksheet Functions | |||
Proper case code not working right | Excel Programming |