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 / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Please help: opening a datastream comma delimited

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
teepee - 11 Mar 2008 16:08 GMT
Hello

Anyone help? I'm trying to open a data stream in excel from my own remote
server which uses comma delimitation and I'm trying to get Excel to open as
such, instead of sticking all the data in one column.

Someone suggested the code below might work from but on 'startrow' it throws
up a 'compile error' that 'named argument is not found'.

Anyone have an idea how to do it? I'm no expert.

Workbooks.Open
Filename:="http://x.x.x.x:8085/ppui/resultscsv?CUSTOMER=BOOKINGID=8165806",
Origin:=437, Startrow:=1, DataType:=xlDelimited,
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False,
Semicolon:=False, Comma:=True, Space:=False, Other:=False,
FieldInfo:=Array(1, 1), TrailingMinusNumbers:=True
teepee - 11 Mar 2008 16:23 GMT
and if i omit Origin and Startrow it gives the same error for
ConsecutiveDelimiter

> Hello
>
[quoted text clipped - 13 lines]
> Semicolon:=False, Comma:=True, Space:=False, Other:=False,
> FieldInfo:=Array(1, 1), TrailingMinusNumbers:=True
quiettechblue@yahoo.com - 15 Mar 2008 19:39 GMT
teepee nomail@nomail.com left this in microsoft.public.excel:

> Hello
>
[quoted text clipped - 8 lines]
>
> Workbooks.Open

Filename:="http://x.x.x.x:8085/ppui/resultscsv?CUSTOMER=BOOKINGID=8165806",
> Origin:=437, Startrow:=1, DataType:=xlDelimited,
> TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False,
> Semicolon:=False, Comma:=True, Space:=False, Other:=False,
> FieldInfo:=Array(1, 1), TrailingMinusNumbers:=True

Does the source filename have a ".csv" extension?
teepee - 16 Mar 2008 16:19 GMT
> Does the source filename have a ".csv" extension?

No it doesn't. That's the issue.

In fact I solved the problem anyway.
quiettechblue@yahoo.com - 19 Mar 2008 03:44 GMT
teepee nomail@nomail.com left this in microsoft.public.excel:

>> Does the source filename have a ".csv" extension?
>
> No it doesn't. That's the issue.
>
> In fact I solved the problem anyway.

Thank you for the feedback.  It makes the thread far more valuable.
teepee - 19 Mar 2008 12:00 GMT
>> In fact I solved the problem anyway.
>
> Thank you for the feedback.  It makes the thread far more valuable.

Good point. I forgot to say what worked.

The trick was to say

Workbooks.OpenText Filename:

instead of

Workbooks.Open Filename:

Rate this thread:






 
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.