Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Connect to intranet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jaan - 19 Mar 2008 15:37 GMT
Hi
I am using code to log in our intranet
That works perfectly, but trouble is: I must insert my password manually.
How can I use vba to insert password automaticcaly.
I use code below
Sub TEST_UpDate()
Dim strFolderName As String
Dim Workbook As Workbooks

strFolderName = "Z:\Test"

On Error GoTo Err_Handler

Dim strFileName
With Application.FileSearch
.NewSearch
.LookIn = strFolderName
.Filename = ".CSV"
.SearchSubFolders = True
.Execute SortBy:=msoSortBySize

.LookIn = strFolderName
.Filename = ".CSV"
.SearchSubFolders = True
If .Execute(msoSortByLastModified, msoSortOrderDescending) > 0 Then
strFileName = .FoundFiles(1)

Application.Workbooks.Open strFileName

End If
End With
Exit_Sub:
Exit Sub
Err_Handler:
Resume Exit_Sub
End Sub
JP - 19 Mar 2008 15:46 GMT
What do you mean "intranet"? Is it a website? And you have to log in
to access it? Doesn't your co. have network shares that can be mapped
to local drives? Help us understand.

--JP

> Hi
> I am using code to log in our intranet
[quoted text clipped - 32 lines]
> Resume Exit_Sub
> End Sub
Jaan - 19 Mar 2008 21:28 GMT
Hi JP
Sorry for my unfinished definition
Yes we have shared network drive and the "Z" is it and I have access to log
in to it
I hope you understand what I mean and sorry for my english.Its not my daily
language

"JP" kirjutas:

> What do you mean "intranet"? Is it a website? And you have to log in
> to access it? Doesn't your co. have network shares that can be mapped
[quoted text clipped - 38 lines]
> > Resume Exit_Sub
> > End Sub
JP - 19 Mar 2008 21:42 GMT
Not a problem Jaan. But I'm confused -- your company makes you log in
to access internal documents? You work there!

Sorry I can't help any further.

--JP

> Hi JP
> Sorry for my unfinished definition
[quoted text clipped - 49 lines]
>
> - Show quoted text -
Jaan - 20 Mar 2008 12:08 GMT
Hi again
Thanks JP for your responde. I hope some solution must be.

I have discussed with our IT man and he told, that "Z:" is mapped network
drive.
To enter there I have username and password
Are this issue will kind of change my problem

Regards

"JP" kirjutas:

> Not a problem Jaan. But I'm confused -- your company makes you log in
> to access internal documents? You work there!
[quoted text clipped - 56 lines]
> >
> > - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.