Results 1 to 6 of 6

macro adjustment required - importing file into excel 2007

Threaded View

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    perth
    MS-Off Ver
    Excel 2007
    Posts
    3

    macro adjustment required - importing file into excel 2007

    Hi

    Very new to excel 2007. I have the following piece of code that allows me to import and array the data in excel 2003 but does not work for excel 2007. Does anybody have any ideas?


    Application.StatusBar = "Importing 0367 Era.Dat File..."
        
            Workbooks.OpenText Filename:=txtDirectory, Origin:=xlWindows, _
            StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(10 _
            , 1), Array(37, 1), Array(45, 1), Array(64, 1), Array(85, 1), Array(97, 1), Array(101, 1)), _
            TrailingMinusNumbers:=True

    Thank you in advance


    Matt
    Last edited by TMS; 01-16-2012 at 04:14 AM. Reason: Added Code Tags

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