Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default VBA and Passwords?

Rob... it worked!! I used:
Application.SendKeys "+{tab}xxxx~"

I had to use the shift+tab to get focus on the password field. Now, the user
doesn't even see the log in, which is what I wanted. Fantastic!

At first I made a common mistake, however. I had the SendKeys after the Open
action that launched the FTP log in dialog box. Once I moved it to before
the Open action, it worked beautifully. I love it!

I greatly thank you again for all your wonderful assistance. You don't know
how long I have been researching this little obstacle and with many people.
I became obsessed over it, but I'm grateful I didn't give up and found you
here.

Do you offer like a summer boot camp for VBA? Let me know and I'll send a
check and book a flight! <g

Pat

"Pat Beck" wrote in message
...
Thanks, Rob. I'll look into SendKeys, although I've never used it before.

I
hope it's not too difficult. <g

The reasons I suspect the FTP log in to be part of office is that 1) it
looks very different than the standard FTP log in from ftp.exe. Also, 2)

the
FTP log in I speak of has its registry settings inside Microsoft Office
keys. It's found at:
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\C ommon\DrawAlerts\FTP
Sites\site_0. Of course the last key (site_0) appears only if you have

added
a site through an Office program. 3) Unlike normal FTP connection setup,
this FTP log in set up can only be done through an Office program.
(File|Open|LookIn|FTP Locations)

Maybe I've mislead myself, but it seems like this is part of Office. Many
experts I spoke with were not aware of this FTP set up. Do you have

thoughts
about it?

In the meantime, I'll try the learn the SendKey method. I hope you won't
mind me asking for help again should I run into problems with it, which I
likely will. <g

Many thanks as always.

Pat

"Rob Bovey" wrote in message
...
Hi Pat,

I don't think an FTP log-in dialog would be part of Office. That

kind
of
authentication is controlled by the FTP server. I don't have the right

test
configuration available to work out the specifics, but I suspect that

you
could probably populate the dialog from your code by sending it

keystrokes
using the SendKeys method.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Pat Beck" wrote in message
...
I wonder if I can push my luck and get one more question answered

about
my
project? <g

I have simple code that saves to an FTP site and it works fine.

ActiveWorkbook.SaveAs Filename:= _
" ftp://www.name.com/public/Budget.xls ", _
FileFormat:=xlNormal, Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False, _
CreateBackup:=False

But Office has an FTP Log In dialog box that asks for a password. Is

there
ANY way possible to program that puppy to take a password via code?

Even
if
it only enters it as the default password - leaving the user to merely

click
OK without actually entering it.

I've even tried hacking the registry, but it doesn't seem to hold a

password
either - and I've spoken to a registry expert who shrugged his

shoulders
too.

I take it this FTP Log In dialog box is part of Office, not so much

Windows.
Can it, therefore, be controlled through VBA from Excel to take a

password?

Thanks.

Pat








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passwords Tina Marie Excel Discussion (Misc queries) 2 March 17th 08 04:21 PM
Passwords Lillian[_2_] Excel Discussion (Misc queries) 6 July 30th 07 01:32 PM
Passwords Cathi Excel Discussion (Misc queries) 1 October 13th 06 06:01 PM
Passwords Manos Excel Discussion (Misc queries) 1 February 9th 05 12:08 PM
passwords George Setting up and Configuration of Excel 0 February 5th 05 02:11 PM


All times are GMT +1. The time now is 06:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"