Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default dynamically assigning QueryTables.Add.TextFileColumnDataTypes

FYI ..

I wanted to do this and was having all kinds of issues. Here is what it
looks like in the documentation

..textfilecolumndatatypes = array(1,2,1,3) ...etc

Here is what I wanted to do
A(0) = 1
A(1) = 2
A(2) = 1
A(3) = 3
..textfilecolumndatatypes = a

Did not work.

I changed this
Option Base 1
A(1) = 1
A(2) = 2
A(3) = 1
A(4) = 3
..textfilecolumndatatypes = a

This worked.
--


Fantastically,

Alan Ayers
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
QueryTables command Sharlene England Excel Programming 0 January 4th 06 11:43 PM
ActiveSheet.QueryTables.Add Rick Excel Programming 4 November 10th 05 04:24 AM
dynamically assigning to a combo box C[_3_] Excel Programming 1 February 22nd 05 08:30 AM
QueryTables Add Marta[_3_] Excel Programming 0 January 19th 05 05:32 PM


All times are GMT +1. The time now is 11:02 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"