PC Review


Reply
Thread Tools Rate Thread

Assistance with error message on CELLS

 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      19th Oct 2006
I have the following

Set myRange = Cells(9, 3) .Resize(52,31)

I got the error method cells of global object failed.

Can someone explain why it's not working?

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      19th Oct 2006
Is the ActiveSheet a chart?
--
Charles Chickering

"A good example is twice the value of good advice."


"Barb Reinhardt" wrote:

> I have the following
>
> Set myRange = Cells(9, 3) .Resize(52,31)
>
> I got the error method cells of global object failed.
>
> Can someone explain why it's not working?
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      19th Oct 2006
No, it's a worksheet. Any other suggestions?

"Charles Chickering" wrote:

> Is the ActiveSheet a chart?
> --
> Charles Chickering
>
> "A good example is twice the value of good advice."
>
>
> "Barb Reinhardt" wrote:
>
> > I have the following
> >
> > Set myRange = Cells(9, 3) .Resize(52,31)
> >
> > I got the error method cells of global object failed.
> >
> > Can someone explain why it's not working?
> >
> > Thanks

 
Reply With Quote
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      19th Oct 2006
It works for me. Send me your workbook if you would like and I'll see if I
can repeat the error. (E-Mail Removed)
--
Charles Chickering

"A good example is twice the value of good advice."


"Barb Reinhardt" wrote:

> No, it's a worksheet. Any other suggestions?
>
> "Charles Chickering" wrote:
>
> > Is the ActiveSheet a chart?
> > --
> > Charles Chickering
> >
> > "A good example is twice the value of good advice."
> >
> >
> > "Barb Reinhardt" wrote:
> >
> > > I have the following
> > >
> > > Set myRange = Cells(9, 3) .Resize(52,31)
> > >
> > > I got the error method cells of global object failed.
> > >
> > > Can someone explain why it's not working?
> > >
> > > Thanks

 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      19th Oct 2006
I can't really do that. I do have an embedded chart above one of the cells.
I'll check to see if that's causing the problem.

"Charles Chickering" wrote:

> It works for me. Send me your workbook if you would like and I'll see if I
> can repeat the error. (E-Mail Removed)
> --
> Charles Chickering
>
> "A good example is twice the value of good advice."
>
>
> "Barb Reinhardt" wrote:
>
> > No, it's a worksheet. Any other suggestions?
> >
> > "Charles Chickering" wrote:
> >
> > > Is the ActiveSheet a chart?
> > > --
> > > Charles Chickering
> > >
> > > "A good example is twice the value of good advice."
> > >
> > >
> > > "Barb Reinhardt" wrote:
> > >
> > > > I have the following
> > > >
> > > > Set myRange = Cells(9, 3) .Resize(52,31)
> > > >
> > > > I got the error method cells of global object failed.
> > > >
> > > > Can someone explain why it's not working?
> > > >
> > > > Thanks

 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      19th Oct 2006
Well, it appears that was the problem, but I'm not sure why and I don't want
to change what I have. Any ideas?

"Charles Chickering" wrote:

> It works for me. Send me your workbook if you would like and I'll see if I
> can repeat the error. (E-Mail Removed)
> --
> Charles Chickering
>
> "A good example is twice the value of good advice."
>
>
> "Barb Reinhardt" wrote:
>
> > No, it's a worksheet. Any other suggestions?
> >
> > "Charles Chickering" wrote:
> >
> > > Is the ActiveSheet a chart?
> > > --
> > > Charles Chickering
> > >
> > > "A good example is twice the value of good advice."
> > >
> > >
> > > "Barb Reinhardt" wrote:
> > >
> > > > I have the following
> > > >
> > > > Set myRange = Cells(9, 3) .Resize(52,31)
> > > >
> > > > I got the error method cells of global object failed.
> > > >
> > > > Can someone explain why it's not working?
> > > >
> > > > Thanks

 
Reply With Quote
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      19th Oct 2006
What do you mean by embedded? Is the chart selected when you run that line of
code? if so try activechart.deselect.
--
Charles Chickering

"A good example is twice the value of good advice."


"Barb Reinhardt" wrote:

> Well, it appears that was the problem, but I'm not sure why and I don't want
> to change what I have. Any ideas?
>
> "Charles Chickering" wrote:
>
> > It works for me. Send me your workbook if you would like and I'll see if I
> > can repeat the error. (E-Mail Removed)
> > --
> > Charles Chickering
> >
> > "A good example is twice the value of good advice."
> >
> >
> > "Barb Reinhardt" wrote:
> >
> > > No, it's a worksheet. Any other suggestions?
> > >
> > > "Charles Chickering" wrote:
> > >
> > > > Is the ActiveSheet a chart?
> > > > --
> > > > Charles Chickering
> > > >
> > > > "A good example is twice the value of good advice."
> > > >
> > > >
> > > > "Barb Reinhardt" wrote:
> > > >
> > > > > I have the following
> > > > >
> > > > > Set myRange = Cells(9, 3) .Resize(52,31)
> > > > >
> > > > > I got the error method cells of global object failed.
> > > > >
> > > > > Can someone explain why it's not working?
> > > > >
> > > > > Thanks

 
Reply With Quote
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      19th Oct 2006
Also, when in doubt I always specify the cells parent object if I'm not sure
what's selected:
Set myRange = Worksheets("Sheet1").Cells(9,3).Resize(52,31)
--
Charles Chickering

"A good example is twice the value of good advice."


"Barb Reinhardt" wrote:

> Well, it appears that was the problem, but I'm not sure why and I don't want
> to change what I have. Any ideas?
>
> "Charles Chickering" wrote:
>
> > It works for me. Send me your workbook if you would like and I'll see if I
> > can repeat the error. (E-Mail Removed)
> > --
> > Charles Chickering
> >
> > "A good example is twice the value of good advice."
> >
> >
> > "Barb Reinhardt" wrote:
> >
> > > No, it's a worksheet. Any other suggestions?
> > >
> > > "Charles Chickering" wrote:
> > >
> > > > Is the ActiveSheet a chart?
> > > > --
> > > > Charles Chickering
> > > >
> > > > "A good example is twice the value of good advice."
> > > >
> > > >
> > > > "Barb Reinhardt" wrote:
> > > >
> > > > > I have the following
> > > > >
> > > > > Set myRange = Cells(9, 3) .Resize(52,31)
> > > > >
> > > > > I got the error method cells of global object failed.
> > > > >
> > > > > Can someone explain why it's not working?
> > > > >
> > > > > Thanks

 
Reply With Quote
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      19th Oct 2006
Barb, did you find the problem?
--
Charles Chickering

"A good example is twice the value of good advice."


"Barb Reinhardt" wrote:

> Well, it appears that was the problem, but I'm not sure why and I don't want
> to change what I have. Any ideas?
>
> "Charles Chickering" wrote:
>
> > It works for me. Send me your workbook if you would like and I'll see if I
> > can repeat the error. (E-Mail Removed)
> > --
> > Charles Chickering
> >
> > "A good example is twice the value of good advice."
> >
> >
> > "Barb Reinhardt" wrote:
> >
> > > No, it's a worksheet. Any other suggestions?
> > >
> > > "Charles Chickering" wrote:
> > >
> > > > Is the ActiveSheet a chart?
> > > > --
> > > > Charles Chickering
> > > >
> > > > "A good example is twice the value of good advice."
> > > >
> > > >
> > > > "Barb Reinhardt" wrote:
> > > >
> > > > > I have the following
> > > > >
> > > > > Set myRange = Cells(9, 3) .Resize(52,31)
> > > > >
> > > > > I got the error method cells of global object failed.
> > > > >
> > > > > Can someone explain why it's not working?
> > > > >
> > > > > Thanks

 
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
Error Message Assistance Please standleo Windows XP General 1 5th Sep 2008 05:27 PM
Error Message assistance Stomper Windows XP Help 0 17th Jul 2005 01:06 PM
error message assistance ... ordinal 67 in msi.dll Stomper Windows XP Help 0 10th Jul 2005 11:47 AM
Error Message- Need Assistance =?Utf-8?B?THluY2g=?= Windows XP Help 0 4th Mar 2005 04:15 AM
error message - need assistance =?Utf-8?B?RXJpYyBAIFNFQVNILCBFdmFuc3ZpbGxl?= Microsoft Access Reports 1 5th Aug 2004 03:56 AM


Features
 

Advertising
 

Newsgroups
 


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