J
jsd219
i am having issues with the code below:
Dim strCellAbove As String
Dim strCurrentCell As String
Dim s As String
Dim cell As Range
nlastrow = ActiveSheet.UsedRange.Rows.Count + ActiveSheet.UsedRange.Row
- 1
myrow = Selection.Row
howmany = nlastrow - myrow
Set cell2 = Range(Selection, Selection.Offset(howmany, 0))
cell2.Select
For Each cell In Selection
If cell.Value = LCase(cell.Value) Then
cell.Offset(-1, 0).Value = cell.Offset(-1, 0).Value & " " &
cell.Value
ActiveSheet.Rows(cell.Row).Delete
End If
Next
Example:
JACK AND JILL
Jack and Jill
jack and Jill
i need the code to read the first word and determine if it starts with
a capital letter or not. currently it looks for all lowercase so
looking at the third example it sees this as uppercase because "Jill"
is capitalized. i need it to focus only on the first word of the text
string.
Anyone with any ideas?
God bless
jsd219
Dim strCellAbove As String
Dim strCurrentCell As String
Dim s As String
Dim cell As Range
nlastrow = ActiveSheet.UsedRange.Rows.Count + ActiveSheet.UsedRange.Row
- 1
myrow = Selection.Row
howmany = nlastrow - myrow
Set cell2 = Range(Selection, Selection.Offset(howmany, 0))
cell2.Select
For Each cell In Selection
If cell.Value = LCase(cell.Value) Then
cell.Offset(-1, 0).Value = cell.Offset(-1, 0).Value & " " &
cell.Value
ActiveSheet.Rows(cell.Row).Delete
End If
Next
Example:
JACK AND JILL
Jack and Jill
jack and Jill
i need the code to read the first word and determine if it starts with
a capital letter or not. currently it looks for all lowercase so
looking at the third example it sees this as uppercase because "Jill"
is capitalized. i need it to focus only on the first word of the text
string.
Anyone with any ideas?
God bless
jsd219