Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Assistance with error message on CELLS

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Assistance with error message on CELLS

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Assistance with error message on CELLS

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Assistance with error message on CELLS

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.
--
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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Assistance with error message on CELLS

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.
--
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

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Assistance with error message on CELLS

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.
--
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

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Assistance with error message on CELLS

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.
--
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

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Assistance with error message on CELLS

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.
--
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
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
why do I get an error message when i try to merge cells? Megglesface Excel Worksheet Functions 5 July 22nd 08 04:46 PM
Error message: Too many different formats of cells João Carmona Setting up and Configuration of Excel 3 February 27th 08 06:10 PM
Too many formatted cells error message nsando Excel Discussion (Misc queries) 1 May 22nd 06 11:42 PM
VBA-Error Message Assistance Needed MLS7181 Excel Programming 7 May 3rd 06 08:52 PM
How to sum a row of cells containing an error message to overlook Amy V Excel Worksheet Functions 1 January 6th 06 10:07 PM


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

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"