Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Script user id and password

Hello. The code below simply opens a csv file that is housed on a web
server. Unfortunately to connect to it, a user id and password is required
(Apache). Can that user id and pw be coded in my vba module?

CSVPath = "http://test/testdata/latestdata.csv"

Workbooks.Open CSVPath


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Script user id and password

(Apache). Can that user id and pw be coded in my vba module?

CSVPath = "http://test/testdata/latestdata.csv"

Workbooks.Open CSVPath


CSVPath = "

Enjoy

--
You should never practice juggling with batteries. I have the
black eye to explain why.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Script user id and password

Hi Chris. Thanks for the response. I tried it, but got an error. I
entered your proposed url directly into internet explorer, but got "page
cannot be displayed". I assume I substitute the actaul userid and password
where you have below? Any ideas? Thanks!

"Chris" wrote in message
news:lR8nd.50283$V41.47574@attbi_s52...
(Apache). Can that user id and pw be coded in my vba module?

CSVPath = "http://test/testdata/latestdata.csv"

Workbooks.Open CSVPath


CSVPath = "

Enjoy

--
You should never practice juggling with batteries. I have the
black eye to explain why.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Script user id and password

Chris. nevermind! When it runs in the code, it works perfectly!! Thanks
you SO much!! Much appreciated.

Steph

"Chris" wrote in message
news:lR8nd.50283$V41.47574@attbi_s52...
(Apache). Can that user id and pw be coded in my vba module?

CSVPath = "http://test/testdata/latestdata.csv"

Workbooks.Open CSVPath


CSVPath = "

Enjoy

--
You should never practice juggling with batteries. I have the
black eye to explain why.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Script user id and password

Chris,

Your suggestion below works sometimes, not always. It's strange....often
when I open the file for the forst time and run the code, it still prompts
me for the user id and password. If I ener it, then rerun the code later,
it does NOT prompt me for user id and password. Any idea how I can get it
to NEVER prompt me??

"Chris" wrote in message
news:lR8nd.50283$V41.47574@attbi_s52...
(Apache). Can that user id and pw be coded in my vba module?

CSVPath = "http://test/testdata/latestdata.csv"

Workbooks.Open CSVPath


CSVPath = "

Enjoy

--
You should never practice juggling with batteries. I have the
black eye to explain why.



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
Password / Filter workbook by user SDamico Excel Discussion (Misc queries) 1 March 17th 10 09:32 PM
Protection password iin VBA, how to avoid user seeing it? Afsha Excel Discussion (Misc queries) 2 January 23rd 07 03:06 PM
Read only password script box Joey041 Excel Discussion (Misc queries) 1 May 3rd 05 01:23 AM
VBA Script to detect user input Fraggs[_19_] Excel Programming 2 August 2nd 04 04:33 PM
Problem with user name and password Jim Simpson Excel Programming 2 June 1st 04 07:47 PM


All times are GMT +1. The time now is 10:14 AM.

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

About Us

"It's about Microsoft Excel"