Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default TextToColumns 2000 and 2003 differences?

Hello,

I have some code that runs perfectly using the TextToColumns function
in Excel 2003. However when I try to run it on another computer with
2000, I get the error

"Run-time error '1004':
Application-defined or object-defined error"

Here is the command it is stuck on...

Selection.TextToColumns Destination:=rUserAcct.Offset(iRowDown, 0),
DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 1), Array(21, 1), Array(34, 1),
Array(50, 1), Array(59, 1), _
Array(67, 1), Array(68, 1)), TrailingMinusNumbers:=True

I double checked the selection and it looks correct before it is sent
to this function. Is there missing functionality in 2000 that
supports this command in 2003? If so, there another way to write this
so they will be compatible?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default TextToColumns 2000 and 2003 differences?

TrailingMinusNumbers does not exist in Excel 2000.

--
Jim
"Robert" wrote in message
oups.com...
| Hello,
|
| I have some code that runs perfectly using the TextToColumns function
| in Excel 2003. However when I try to run it on another computer with
| 2000, I get the error
|
| "Run-time error '1004':
| Application-defined or object-defined error"
|
| Here is the command it is stuck on...
|
| Selection.TextToColumns Destination:=rUserAcct.Offset(iRowDown, 0),
| DataType:=xlFixedWidth, _
| FieldInfo:=Array(Array(0, 1), Array(21, 1), Array(34, 1),
| Array(50, 1), Array(59, 1), _
| Array(67, 1), Array(68, 1)), TrailingMinusNumbers:=True
|
| I double checked the selection and it looks correct before it is sent
| to this function. Is there missing functionality in 2000 that
| supports this command in 2003? If so, there another way to write this
| so they will be compatible?
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default TextToColumns 2000 and 2003 differences?

Thanks! It works again.

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
can you summarize differences between Excel 2000, 2003 & 2007? LSL Excel Discussion (Misc queries) 2 August 7th 08 03:39 PM
Differences between Excel 2003 and Excel 2000 JRB Excel Programming 4 November 27th 06 03:17 AM
opening word doc from excel 2000 and 2003 differences Colin C Excel Discussion (Misc queries) 0 December 11th 05 08:06 PM
Major differences between Microsoft 2003 and 2000? Zody Excel Discussion (Misc queries) 3 January 7th 05 02:02 AM
Differences between Excel '97 and 2000 Pozzo[_5_] Excel Programming 0 June 8th 04 06:18 PM


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