Exercise 3.5B
Exercise 3.5B
Paise = ConvertTens(Temp)
Count = 1
If MyNumber <> "" Then
If Temp <> "" Then Rupees = Temp & Place(Count) & Rupees
End If
If Temp <> "" Then Rupees = Temp & Place(Count) & Rupees
If Len(MyNumber) > 2 Then
' Remove last 2 converted digits from MyNumber.
MyNumber = Left(MyNumber, Len(MyNumber) - 2)
Else
MyNumber = ""
End If
Count = Count + 1
Loop
End Function
End Function
ConvertHundreds = Trim(Result)
End Function
ConvertTens = Result
End Function
___________________________________________________________________________________
______
Exercise- : Convert Text to Lower Case
___________________________________________________________________________________
______
Sub Lowercase()
'
'This will make the text of any selection of cells lowercase.
'
For Each x In Selection
x.Value = LCase(x.Value)
Next
End Sub
___________________________________________________________________________________
______
Exercise- : Convert Text to Upper Case
___________________________________________________________________________________
_______
Sub Uppercase()
'
'This will make the text of any selection of cells lowercase.
'
For Each x In Selection
x.Value = UCase(x.Value)
Next
End Sub
___________________________________________________________________________________
__________
Exercise- : Convert Text to Proper Case
___________________________________________________________________________________
__________
Sub propercase()
Dim rng As Range, cell As Range
Set rng = Selection
For Each cell In rng
cell.Value = WorksheetFunction.Proper(cell.Value)
Next cell
End Sub