Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default HELP!!!! -- (Method Range of _Worksheet failed) ERROR!

I get this under all version of Office I have tried. Currently I am
using 2003, but I got the same message with XP and 2000. Here is my
code:

Sheets("ReportC").Range("A" & i) = "Appendix"

Basic huh. The error will occur randomly. This code worked great all
morning, then I got back from lunch and I get the error message. This
happens ALL the time. Anytime I am trying to write to a cell I may
get this error. Nothing seems to fix it, not even rebooting my pc.
Eventually it will clear itself up and I can run the code again
(exactly as it appears above).

Any ideas? Is there a better (correct) way to write values to cells.

Thanks in advance,

SOS
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default HELP!!!! -- (Method Range of _Worksheet failed) ERROR!

Sometimes if a shape or chart object is active, assigning
values to cells fails. Ensure to select worksheet cell
prior to the assignment, i.e. range("A1").select or
activecell.select

-----Original Message-----
I get this under all version of Office I have tried.

Currently I am
using 2003, but I got the same message with XP and

2000. Here is my
code:

Sheets("ReportC").Range("A" & i) = "Appendix"

Basic huh. The error will occur randomly. This code

worked great all
morning, then I got back from lunch and I get the error

message. This
happens ALL the time. Anytime I am trying to write to a

cell I may
get this error. Nothing seems to fix it, not even

rebooting my pc.
Eventually it will clear itself up and I can run the

code again
(exactly as it appears above).

Any ideas? Is there a better (correct) way to write

values to cells.

Thanks in advance,

SOS
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default HELP!!!! -- (Method Range of _Worksheet failed) ERROR!

Thanks, but thats not the problem. In fact i get a "Select" method of
range failed (Error 1004) when I tried. Could the workbook or
worksheets be locked somehow? Te are not protected and the file is
not read only, but for some reason I cant write to any cells now.

Any help?

wrote in message ...
Sometimes if a shape or chart object is active, assigning
values to cells fails. Ensure to select worksheet cell
prior to the assignment, i.e. range("A1").select or
activecell.select

-----Original Message-----
I get this under all version of Office I have tried.

Currently I am
using 2003, but I got the same message with XP and

2000. Here is my
code:

Sheets("ReportC").Range("A" & i) = "Appendix"

Basic huh. The error will occur randomly. This code

worked great all
morning, then I got back from lunch and I get the error

message. This
happens ALL the time. Anytime I am trying to write to a

cell I may
get this error. Nothing seems to fix it, not even

rebo

oting my pc.
Eventually it will clear itself up and I can run the

code again
(exactly as it appears above).

Any ideas? Is there a better (correct) way to write

values to cells.

Thanks in advance,

SOS
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default HELP!!!! -- (Method Range of _Worksheet failed) ERROR!

Hi,

Did you check what value "i" has before executing that line. i variable could be empty or minus or bigger than max row count(65536).

Or some cells in Column A in the ReportC sheet could be protected...

--
Regards

Haldun Alay

To e-mail me, please remove AT and DOT from my e-mail address.



"Fusion" , iletide sunu yazdi om...
I get this under all version of Office I have tried. Currently I am
using 2003, but I got the same message with XP and 2000. Here is my
code:

Sheets("ReportC").Range("A" & i) = "Appendix"

Basic huh. The error will occur randomly. This code worked great all
morning, then I got back from lunch and I get the error message. This
happens ALL the time. Anytime I am trying to write to a cell I may
get this error. Nothing seems to fix it, not even rebooting my pc.
Eventually it will clear itself up and I can run the code again
(exactly as it appears above).

Any ideas? Is there a better (correct) way to write values to cells.

Thanks in advance,

SOS
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default HELP!!!! -- (Method Range of Worksheet failed) ERROR!

Yes I checked all of that. "i" has avalue of 1, ande the cells,
worksheet and workbook are un-protected.

Help!

"Haldun Alay" <haldunalayATyahooDOTcom wrote in message ...
Hi,

Did you check what value "i" has before executing that line. i variable
could be empty or minus or bigger than max row count(65536).

Or some cells in Column A in the ReportC sheet could be protected...

--
Regards

Haldun Alay

To e-mail me, please remove AT and DOT from my e-mail address.



"Fusion" <so , iletide sunu yazdi
om...
I get this under all version of Office I have tried. Currently I am
using 2003, but I got the same message with XP and 2000. Here is my
code:

Sheets("ReportC").Range("A" & i) = "Appendix"

Basic huh. The error will occur randomly. This code worked great all
morning, then I got back from lunch and I get the error message. This
happens ALL the time. Anytime I am trying to write to a cell I may
get this error. Nothing seems to fix it, not even rebooting my pc.
Eventually it will clear itself up and I can run the code again
(exactly as it appears above).

Any ideas? Is there a better (correct) way to write values to cells.

Thanks in advance,

SOS
--

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
Method 'MailEnvelope' of object '_Worksheet' failed [email protected] Excel Discussion (Misc queries) 1 December 7th 05 11:20 PM
runtime error 1004 method range of object '_global failed valdesd Excel Discussion (Misc queries) 2 October 6th 05 07:26 PM
Method 'Paste' of object '_Worksheet' failed markline Excel Discussion (Misc queries) 7 May 28th 05 05:02 AM
error 1004 Select method of Range class failed J.E. McGimpsey Excel Programming 1 September 12th 03 07:42 PM


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