PC Review


Reply
Thread Tools Rate Thread

ADODB over HTTP?

 
 
LDB
Guest
Posts: n/a
 
      14th Jun 2007
Hi,

I've currently got an ADODB connection to a CSV file on a fileserver
working over TCP-IP. My VBA looks something like this:

fname = "\\fileserver\directory\file.csv"

With resultLocation.Worksheet.QueryTables.Add(Connection:="TEXT;" &
fname, Destination:=resultLocation)
.attributes = blah
End With

However, the production of our CSV files is now automated as a cron
job on an AIX box and the only feasible way to access them (between
platforms) is accross HTTP. Can I get excel to easily connect over
this protocol, i.e. making my string filename string more like:

fname = "http://internal.server/directory/file.csv"

My first attempts have failed miserably - is this idea going
anywhere?

Thanks,
Louis

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      15th Jun 2007
What about using a web query ?

NickHK

"LDB" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I've currently got an ADODB connection to a CSV file on a fileserver
> working over TCP-IP. My VBA looks something like this:
>
> fname = "\\fileserver\directory\file.csv"
>
> With resultLocation.Worksheet.QueryTables.Add(Connection:="TEXT;" &
> fname, Destination:=resultLocation)
> .attributes = blah
> End With
>
> However, the production of our CSV files is now automated as a cron
> job on an AIX box and the only feasible way to access them (between
> platforms) is accross HTTP. Can I get excel to easily connect over
> this protocol, i.e. making my string filename string more like:
>
> fname = "http://internal.server/directory/file.csv"
>
> My first attempts have failed miserably - is this idea going
> anywhere?
>
> Thanks,
> Louis
>



 
Reply With Quote
 
LDB
Guest
Posts: n/a
 
      15th Jun 2007
On 15 Jun, 05:01, "NickHK" <TungChe...@Invalid.com> wrote:
> What about using a web query ?
>
> NickHK
>
> "LDB" <l.br...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > Hi,

>
> > I've currently got an ADODB connection to a CSV file on a fileserver
> > working over TCP-IP. My VBA looks something like this:

>
> > fname = "\\fileserver\directory\file.csv"

>
> > With resultLocation.Worksheet.QueryTables.Add(Connection:="TEXT;" &
> > fname, Destination:=resultLocation)
> > .attributes = blah
> > End With

>
> > However, the production of our CSV files is now automated as a cron
> > job on an AIX box and the only feasible way to access them (between
> > platforms) is accross HTTP. Can I get excel to easily connect over
> > this protocol, i.e. making my string filename string more like:

>
> > fname = "http://internal.server/directory/file.csv"

>
> > My first attempts have failed miserably - is this idea going
> > anywhere?

>
> > Thanks,
> > Louis



Nick,

I've tried using a web query (i.e. connection:="URL;...") but then it
doesn't split the file by the delimitation character specified! It
ends up dumping the whole line (e.g. 234,34545,4444) in one cell...

Any thoughts??

Louis

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      18th Jun 2007
Apply data>Text To Columns after.

NickHK

"LDB" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On 15 Jun, 05:01, "NickHK" <TungChe...@Invalid.com> wrote:
> > What about using a web query ?
> >
> > NickHK
> >
> > "LDB" <l.br...@gmail.com> wrote in message
> >
> > news:(E-Mail Removed)...
> >
> > > Hi,

> >
> > > I've currently got an ADODB connection to a CSV file on a fileserver
> > > working over TCP-IP. My VBA looks something like this:

> >
> > > fname = "\\fileserver\directory\file.csv"

> >
> > > With resultLocation.Worksheet.QueryTables.Add(Connection:="TEXT;" &
> > > fname, Destination:=resultLocation)
> > > .attributes = blah
> > > End With

> >
> > > However, the production of our CSV files is now automated as a cron
> > > job on an AIX box and the only feasible way to access them (between
> > > platforms) is accross HTTP. Can I get excel to easily connect over
> > > this protocol, i.e. making my string filename string more like:

> >
> > > fname = "http://internal.server/directory/file.csv"

> >
> > > My first attempts have failed miserably - is this idea going
> > > anywhere?

> >
> > > Thanks,
> > > Louis

>
>
> Nick,
>
> I've tried using a web query (i.e. connection:="URL;...") but then it
> doesn't split the file by the delimitation character specified! It
> ends up dumping the whole line (e.g. 234,34545,4444) in one cell...
>
> Any thoughts??
>
> Louis
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB Connection over HTTP LDB Microsoft Excel Discussion 4 15th Jun 2007 11:14 AM
URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C# =?Utf-8?B?U2lsdmlhIEJydW5ldCBKb25lcw==?= Microsoft Dot NET Framework 9 13th Oct 2004 04:31 PM
Re: URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C# Cowboy \(Gregory A. Beamer\) [MVP] Microsoft ADO .NET 1 29th Jul 2004 02:11 PM
Re: URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C# Lucas Tam Microsoft ADO .NET 0 29th Jul 2004 04:34 AM
URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C# =?Utf-8?B?U2lsdmlhIEJydW5ldCBKb25lcw==?= Microsoft Dot NET Framework 0 28th Jul 2004 07:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:06 AM.