Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hmm hmm is offline
external usenet poster
 
Posts: 175
Default Macro terminates upon opening text file

A macro worked well when it was called from the the same workbook that I
designed it in. I saved the macro to a dedicated worksheet in XLSTART. Now
when I call it from another worksheet, the procedure inexplicably terminates
upon opening a text file. The debugger just lets go - not even an error
message.

Can anyone give me any ideas as to why this might occur?

JFI, the calling line is:

Workbooks.OpenText Filename:=strPath, Origin:= _
xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False,
Semicolon:=True, _
Comma:=False, Space:=False, Other:=False, FieldInfo:=Array(1, 1)
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
Macro error opening text file Jim C Excel Discussion (Misc queries) 0 November 6th 09 04:05 PM
Problems opening a text file using macro! aiyer[_50_] Excel Programming 2 August 27th 04 08:36 PM
Opening text file in Excel through macro Ed[_9_] Excel Programming 0 October 7th 03 04:13 PM
Opening text file in Excel through macro Tom Ogilvy Excel Programming 0 October 7th 03 03:53 PM
Opening text file in Excel through macro shockley Excel Programming 0 October 7th 03 03:49 PM


All times are GMT +1. The time now is 02:07 AM.

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

About Us

"It's about Microsoft Excel"