Hi
I need a smiliar vbs but with Sub, not function which able to update the status on Col J when i activate the macro.
It will left a remarks
Directory & Link Ok
File was not found in folder
The best if can differentiate which one is Folder, which is link
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[/TR]
[TR]
[TD]
[TD]
[TD="align: center"]Status[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C:\Users\ABC\Desktop\SavedFolder\Email1\test.JPG[/TD]
[TD]Link Ok[/TD]
[/TR]
[TR]
[TD]C:\Users\ABC\Desktop\SavedFolder\Email2\[/TD]
[TD][/TD]
[TD]Folder was not found[/TD]
[/TR]
</tbody>[/TABLE]
I need a smiliar vbs but with Sub, not function which able to update the status on Col J when i activate the macro.
It will left a remarks
Directory & Link Ok
File was not found in folder
The best if can differentiate which one is Folder, which is link
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[/TR]
[TR]
[TD]
FOLDER Path
[/TD][TD]
SINGLE Path
[/TD][TD="align: center"]Status[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C:\Users\ABC\Desktop\SavedFolder\Email1\test.JPG[/TD]
[TD]Link Ok[/TD]
[/TR]
[TR]
[TD]C:\Users\ABC\Desktop\SavedFolder\Email2\[/TD]
[TD][/TD]
[TD]Folder was not found[/TD]
[/TR]
</tbody>[/TABLE]
Code:
Function FileExist(path As String) As Boolean
If Dir(path) <> vbNullString Then FileExist = True
End Function