Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have the code below but it gives me an error and tells me to defin the variable 'cell' in the For Each cell In Selection part. Why is i doing that? Code ------------------- LRow = Cells(Rows.Count, "E").End(xlUp).Row Range("A2:A" & LRow).Select ' START CHANGE NUMBER TO TEXT For Each cell In Selection cell.NumberFormat = "@" cell.Value = Trim(cell.Value) ' If cell.Value < "" Then ' TempString = Trim(UCase(cell.Value)) ' cell.Value = TempString ' End If Next cel ------------------- -- DK ----------------------------------------------------------------------- DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451 View this thread: http://www.excelforum.com/showthread.php?threadid=39345 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problems with ngs | Excel Worksheet Functions | |||
aauugghhh...#div/o problems & various average formula problems | Excel Worksheet Functions | |||
Tab Key problems | Excel Discussion (Misc queries) | |||
RTD Problems | Excel Programming | |||
Problems merging an excel file due to code or file problems? | Excel Programming |