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: