Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default What does "Application-defined or object-defined error" mean?

When I try to run the following one line macro, I got the error msg
that "Application-defined or object-defined error". It must be
something simple but I am completely clueless as to what the mistake
is.

Columns(1).TextToColumns Destinations:=Range("B1"),
ConsecutiveDelimiter:=True, Space:=True
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default What does "Application-defined or object-defined error" mean?

Shatin,

I think you meant "Destination" (singular, not plural). Then it works for
me.

hth,

Doug

"Shatin" wrote in message
om...
When I try to run the following one line macro, I got the error msg
that "Application-defined or object-defined error". It must be
something simple but I am completely clueless as to what the mistake
is.

Columns(1).TextToColumns Destinations:=Range("B1"),
ConsecutiveDelimiter:=True, Space:=True



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default What does "Application-defined or object-defined error" mean?

Hi

Change Destinations:=Range("B1") to Destination:=Range("B1")
You have an extra "s" at the end of Destination

Tony

----- Shatin wrote: -----

When I try to run the following one line macro, I got the error msg
that "Application-defined or object-defined error". It must be
something simple but I am completely clueless as to what the mistake
is.

Columns(1).TextToColumns Destinations:=Range("B1"),
ConsecutiveDelimiter:=True, Space:=True

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default What does "Application-defined or object-defined error" mean?

What a silly mistake! Is there anyway I can avoid such mistakes in
future??
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default What does "Application-defined or object-defined error" mean?

Yes, be more careful<vbg

Seriously though, mistakes happen. Intellisense should help guide you so
that only correct syntax is input. The other thing is that when you get an
error, try (at least) 2 things
1 - check the syntax in help
2 - break the problem down and check the component parts individually.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Shatin" wrote in message
...
What a silly mistake! Is there anyway I can avoid such mistakes in
future??





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
Run-time error '50290': Application-defined or object-defined erro Macro button Excel Discussion (Misc queries) 1 March 12th 09 10:59 AM
"Application-defined or object-defined error" while printing excel report chemburkar Excel Programming 0 February 2nd 04 08:33 PM
"Run Time Error 1004 Application Defined or Object Defined Error." BJC Excel Programming 4 October 26th 03 03:09 AM
Application-defined or object-defined error Sharon[_5_] Excel Programming 2 October 24th 03 03:49 PM
Runtime Error 1004 -- Application Defined or Object Defined Error John[_51_] Excel Programming 3 September 4th 03 04:28 PM


All times are GMT +1. The time now is 07:22 PM.

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"