Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What a silly mistake! Is there anyway I can avoid such mistakes in
future?? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time error '50290': Application-defined or object-defined erro | Excel Discussion (Misc queries) | |||
"Application-defined or object-defined error" while printing excel report | Excel Programming | |||
"Run Time Error 1004 Application Defined or Object Defined Error." | Excel Programming | |||
Application-defined or object-defined error | Excel Programming | |||
Runtime Error 1004 -- Application Defined or Object Defined Error | Excel Programming |