Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default error 1004 - metod Copy of class Range was failed

If your code is being executed from a commandbutton from the control toolbox
toolbar, then set the TakeFocusOnClick property of the commandbutton to
false.

--
Regards,
Tom Ogilvy


"M." wrote in message
...
I'm using Excel 97.
My code stoped on this line of code:

Worksheets("PROGRAM").Range("26:26").Copy Destination:=Worksheets("SEZNAM
UO").Range("1430:1430")

Active worksheet is "PROGRAM"!

I'd like to copy entire row witch location has writen in variable from one
worksheet to another with diferent row number.

Thank's on advice!

Milos




  #2   Report Post  
Posted to microsoft.public.excel.programming
M. M. is offline
external usenet poster
 
Posts: 18
Default error 1004 - metod Copy of class Range was failed

Tom, thank's!

you gave me idea how to solve this problem, with takefocusonclick i did not
solve my problem, but with activating one cell on worksheet!

Regards,
Milos

"Tom Ogilvy" wrote in message
...
If your code is being executed from a commandbutton from the control

toolbox
toolbar, then set the TakeFocusOnClick property of the commandbutton to
false.

--
Regards,
Tom Ogilvy


"M." wrote in message
...
I'm using Excel 97.
My code stoped on this line of code:

Worksheets("PROGRAM").Range("26:26").Copy

Destination:=Worksheets("SEZNAM
UO").Range("1430:1430")

Active worksheet is "PROGRAM"!

I'd like to copy entire row witch location has writen in variable from

one
worksheet to another with diferent row number.

Thank's on advice!

Milos






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 '1004': AutoFill method of Range class failed murkaboris Excel Discussion (Misc queries) 10 April 16th 09 09:06 PM
Run-time error '1004': AutoFill method of Range class failed murkaboris Excel Discussion (Misc queries) 3 April 14th 09 10:35 PM
Error 1004 Copy method of worksheet class failed Ayo Excel Discussion (Misc queries) 3 March 28th 08 02:05 PM
Runtime 1004 error -- insert method of range class failed. tish Excel Discussion (Misc queries) 1 June 1st 07 04:04 PM
Run-Time error '1004' : Select method of Range class failed [email protected] Excel Discussion (Misc queries) 3 March 9th 07 01:36 PM


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