Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Macro error opening text file

I built the following macro on Excel 2003 SP2, It ran on 2 other network
computers running Excel 2000 until just recently, one computer was replaced
and the other had no changes. I can run it from the working computer from
the same netrwork folder as the non-working computers. It used to work on
the non-working computers so I am confused.

I get a Visual Basic error "Compile error: Named argument not found". The
last argument in the macro code "TrailingMinusNumbers:=" is highlighted, the
following "true" is not highlighted.

Here is the full macro:

Sub FK_open_Q5()
'
' FK_open_Q5 Macro
' Macro recorded 9/22/2008 by
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
ChDir "H:\Public\DDMS Reports"
Workbooks.OpenText Filename:="H:\Public\DDMS Reports\Q5-QUOTE.TXT",
Origin _
:=437, StartRow:=1, DataType:=xlDelimited,
TextQualifier:=xlDoubleQuote _
, ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, Comma:= _
False, Space:=False, Other:=True, OtherChar:="|", FieldInfo:=Array( _
Array(1, 1), Array(2, 2), Array(3, 1), Array(4, 1), Array(5, 1),
Array(6, 1), Array(7, 1), _
Array(8, 2), Array(9, 1), Array(10, 1), Array(11, 2), Array(12, 1),
Array(13, 1), Array(14, _
1), Array(15, 1), Array(16, 1), Array(17, 1), Array(18, 2),
Array(19, 2), Array(20, 1), _
Array(21, 2), Array(22, 1), Array(23, 2), Array(24, 1), Array(25,
1), Array(26, 1), Array( _
27, 1), Array(28, 1)), TrailingMinusNumbers:=True
End Sub

Thanks for any help
--
Jim C
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
Error opening edited XML file - Where is the error log? JonBoy Excel Discussion (Misc queries) 0 March 10th 09 09:40 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
error opening excel file jp New Users to Excel 1 February 19th 05 01:22 AM
error opening excel file jp Excel Discussion (Misc queries) 2 February 17th 05 01:12 AM
macro error when opening any file psp Excel Discussion (Misc queries) 1 January 31st 05 04:33 PM


All times are GMT +1. The time now is 06:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"