Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Annoying bug.

I keep recieveing an application error whenever i run ths
code but I am not sure why.

Here is the code (The part that matters anyhow):

'...open the superval file into excel
Workbooks.OpenText Filename:=PName,
Origin:=xlWindows, StartRow:=1, DataType:=xlDelimited,
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=False, Semicolon:= False, Comma:=False, Space:=False,
Other:=False, FieldInfo:=Array(1, 1)

Workbooks(Prog_Name).Worksheets("Cat
Data").Columns(1).Value = Workbooks(FName).Worksheets
(1).Columns(1).Value

The compiles and run but only get down to a cell where the
value is "=======================================" could
this be the reason it is crashing. It also might be
because there is a limit of around 8000 rows but I doubt
it.

Any ideas where I am going wrong?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Annoying bug.

You say you get an application error, but then you also say you get down to
a line that contains something - if a one line command works, it generally
completes its action or errors and does nothing - so your desciption is
somewhat confusing. Your two lines of code don't seem to relate. You
opentext PName, then use Fname to refer to one of the workbooks. You also
don't say what the error message is.

--
Regards,
Tom Ogilvy

"Shunt" wrote in message
...
I keep recieveing an application error whenever i run ths
code but I am not sure why.

Here is the code (The part that matters anyhow):

'...open the superval file into excel
Workbooks.OpenText Filename:=PName,
Origin:=xlWindows, StartRow:=1, DataType:=xlDelimited,
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=False, Semicolon:= False, Comma:=False, Space:=False,
Other:=False, FieldInfo:=Array(1, 1)

Workbooks(Prog_Name).Worksheets("Cat
Data").Columns(1).Value = Workbooks(FName).Worksheets
(1).Columns(1).Value

The compiles and run but only get down to a cell where the
value is "=======================================" could
this be the reason it is crashing. It also might be
because there is a limit of around 8000 rows but I doubt
it.

Any ideas where I am going wrong?

Thanks in advance



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
Annoying issue Tcs Excel Discussion (Misc queries) 2 April 2nd 10 02:22 AM
annoying red triangle bosforus Excel Discussion (Misc queries) 6 June 22nd 06 11:38 AM
Annoying problem Barney Excel Discussion (Misc queries) 3 March 17th 06 12:47 PM
very annoying problem Please help Frank New Users to Excel 8 September 11th 05 08:18 PM
Annoying pop up Sam Excel Discussion (Misc queries) 2 July 15th 05 02:08 PM


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