PDA

View Full Version : [VBA] Reading a file from the server



ktory
08-16-2012, 01:10 AM
Hi,

As in VBA (without additional controls full VB) to read the contents of the file set on the server?
eg file.txt to domain.com

Or, how to check whether a file exists on the web site?

Thank you for your help

Kenneth Hobs
08-16-2012, 07:34 AM
Welcome to the forum!

See: http://www.vbaexpress.com/forum/showthread.php?t=43015

snb
08-16-2012, 08:36 AM
sub snb()
msgbox createobject("scripting.filesystemobject").opentextfile("\\domain.com\file.txt").readall
end sub