PC Review


Reply
Thread Tools Rate Thread

Cells.copy problem

 
 
Piotr
Guest
Posts: n/a
 
      5th Dec 2005
Hi I have strange problem with my VBA code where I use

sheet("name").select
cells.copy

I use this code in many other workbooks without any problems but today
I have problem with new workbook I created.
While the code is executing I recive the error: Select method failed
or another error: object oriented error ?

does anywone know what is the problem ?

regards
Peter

 
Reply With Quote
 
 
 
 
Martijn
Guest
Posts: n/a
 
      5th Dec 2005
Piotr,
Dzien dobre.
maybe you have some merged cells... this makes copy-ing more difficult.

grtx's Martijn

"Piotr" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Hi I have strange problem with my VBA code where I use
>
> sheet("name").select
> cells.copy
>
> I use this code in many other workbooks without any problems but today
> I have problem with new workbook I created.
> While the code is executing I recive the error: Select method failed
> or another error: object oriented error ?
>
> does anywone know what is the problem ?
>
> regards
> Peter
>



 
Reply With Quote
 
Piotr
Guest
Posts: n/a
 
      5th Dec 2005
Hi Martijn,
No I dont have any, there is only pivot table in each worksheet as Im
using it for reports distribution.

P.S.
Martijn I see you know polish very well .... pozdrawiam

pozdrawiam
Piotr

 
Reply With Quote
 
Martijn
Guest
Posts: n/a
 
      5th Dec 2005
I don't know polish very well... tylko troche... ale jest trudno dla
Hollendrem jak mnie...
"Piotr" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Hi Martijn,
> No I dont have any, there is only pivot table in each worksheet as Im
> using it for reports distribution.
>
> P.S.
> Martijn I see you know polish very well .... pozdrawiam
>
> pozdrawiam
> Piotr
>



 
Reply With Quote
 
Martijn
Guest
Posts: n/a
 
      5th Dec 2005
Piotr,

Try to run the macro step by step (using F8 in vba).. maybe you can find out
where the mistake is...

grtx's Martijn

"Piotr" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Hi I have strange problem with my VBA code where I use
>
> sheet("name").select
> cells.copy
>
> I use this code in many other workbooks without any problems but today
> I have problem with new workbook I created.
> While the code is executing I recive the error: Select method failed
> or another error: object oriented error ?
>
> does anywone know what is the problem ?
>
> regards
> Peter
>



 
Reply With Quote
 
Piotr
Guest
Posts: n/a
 
      5th Dec 2005
I have done so and it alays stops on cells.select
it is very strange as I have exactly same code in other files ?

P.S.
Yes I have tried few worlds "po holendersku" but it was hard too.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A problem with cells name in a copy/paste process =?Utf-8?B?TFJBRg==?= Microsoft Excel Programming 1 26th Jul 2007 09:28 PM
Excel Macro Problem Copy Data from sheet1 to 2 but into different cells GreenOnes@gmail.com Microsoft Excel Programming 5 20th Nov 2006 03:39 PM
Copy problem with cells which have Wrap Text property specified didi Microsoft Excel Discussion 1 26th Sep 2005 12:28 PM
Copy problem with cells which have Wrap Text property specified didi Microsoft Excel Programming 1 26th Sep 2005 11:51 AM
How to use macros to copy a range of cells which can exclude some cells which I didn't want to be copied? excelnovice Microsoft Excel Worksheet Functions 2 25th Sep 2005 12:38 AM


Features
 

Advertising
 

Newsgroups
 


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