Sorry, but I couldn't hit on the correct search term(s) for any previously posted answers.
Is it possible to replace the range address' in the code with the named range?
Obviously nothing I've tried has worked, it converts everything in the range to "#Value"
As always,
TIA for your time.
Ron
Is it possible to replace the range address' in the code with the named range?
Obviously nothing I've tried has worked, it converts everything in the range to "#Value"
Code:
Sub m_MakeProper()
'2/8/2018
Application.Volatile True
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.DisplayStatusBar = False
'
Worksheets("test").Activate
'
Dim LastCol As Integer
Dim LastRow As Long
Dim thiswksht As Worksheet
'
Set thiswksht = ActiveSheet
'
If thiswksht.AutoFilterMode Then
AutoFilterMode = False
End If
'
With thiswksht
LastRow = Cells(Cells.Rows.Count, "A").End(xlUp).Row
LastCol = Cells(1, Columns.Count).End(xlToLeft).Column
End With
'
Cells(1, 1).Activate
Rows(1).find("Status").Select
ActiveCell.Offset(1, 0).Activate
'
Range(ActiveCell.Address, Cells(LastRow, ActiveCell.Column)).Select
Selection.Name = "c_T_test1"
'
With Worksheets("test")
LastRow = .Cells(Rows.Count, "A").End(xlUp).Row
.Range("D2:D" & LastRow).Value = .Evaluate("INDEX(PROPER(D2:D" & LastRow & "),)")
End With
' Application.ScreenUpdating = True
Application.DisplayAlerts = True
Application.DisplayStatusBar = True
End Sub
As always,
TIA for your time.
Ron