+ Reply to Thread
Results 1 to 3 of 3

OpenText Method FieldInfo Arrays

  1. #1
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    OpenText Method FieldInfo Arrays

    I recorded the following macro opening a .csv file
    (then I modified the filename)

    The number of rows in the .csv file changes every day.
    It seems to work properly everytime I run it but I don't understand the FieldInfo Arrays.
    Consequently my concern is will the code not function as desired some day if the .csv file gets too long?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Carstowal,

    You need not worry about the file's length increasing, only the width. The FieldInfo argument is a two dimensional array. The first element is the Column number, and the second is an Excel parsing constant.

    Remarks (from the help file)
    FieldInfo Optional Variant. An array containing parse information for individual columns of data. The interpretation depends on the value of DataType.

    When the data is delimited, this argument is an array of two-element arrays, with each two-element array specifying the conversion options for a particular column. The first element is the column number (1-based), and the second element is one of the xlColumnDataType constants listed in the following table, specifying how the column is parsed.

    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686
    Thank you
    my newbie comprehension of the Help File was not adequate
    I feel much more confident now!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1