I have code in with I want to grab cell value of items in 3rd column a 3 column range. I do not want to creat another range name for this Code below.
Thanks!!!!
Sub MasterLastModified()
For Each cell In Range("MasterList").Columns(3) ***HERE does not work***
If cell.Value = "" Then Exit Sub
Dim objFS As New Scripting.FileSystemObject
Dim objFile As Scripting.File
Dim DLM As Date
Dim MasterPath As String
MasterPath = Range("Fileloc") & "Master-Cons\"
Set objFile = objFS.GetFile(MasterPath & cell.Value)
DLM = objFile.DateLastModified
Set objFile = Nothing
Set objFS = Nothing
cell.Offset(0, -1) = DLM
Next
End Sub
Thanks!!!!
Sub MasterLastModified()
For Each cell In Range("MasterList").Columns(3) ***HERE does not work***
If cell.Value = "" Then Exit Sub
Dim objFS As New Scripting.FileSystemObject
Dim objFile As Scripting.File
Dim DLM As Date
Dim MasterPath As String
MasterPath = Range("Fileloc") & "Master-Cons\"
Set objFile = objFS.GetFile(MasterPath & cell.Value)
DLM = objFile.DateLastModified
Set objFile = Nothing
Set objFS = Nothing
cell.Offset(0, -1) = DLM
Next
End Sub