I'd like to determine using a list in Excel whether each of the computers listed are valid and then highlight accordingly. What I'm interested in here is the part of trying to validate the path/link.
Examples:
\\pc1
\\pc2
\\pc3
\\pc4
That's basically how things are setup with computers on our network. I can hyperlink to them, and the ones that are connected show up in Windows File Explorer no problem. The others give a Windows message of "Cannot open the specified file".
It would be really nice to be able to check all these in advance to highlight those that should NOT work.
I tried the Dir() function, specifying vbDirectory, and that seems to not work. I also tried usingFileScriptingObject FileSystemObject, and that was a no go with setting a folder object equal to the computer path.
Is there some way I can get this done via VBA? Am I spinning my wheels for nothing?
Thanks for any suggestions.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
Examples:
\\pc1
\\pc2
\\pc3
\\pc4
That's basically how things are setup with computers on our network. I can hyperlink to them, and the ones that are connected show up in Windows File Explorer no problem. The others give a Windows message of "Cannot open the specified file".
It would be really nice to be able to check all these in advance to highlight those that should NOT work.
I tried the Dir() function, specifying vbDirectory, and that seems to not work. I also tried using
Is there some way I can get this done via VBA? Am I spinning my wheels for nothing?
Thanks for any suggestions.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57