Macro error, range object need data?

G

Guest

Hi all
How can I improve my macro which has a macro error like below:

"Macro error
The method can't be used in the applied context. Specifically, some Range
object methods require that the range contain data. If the range does not
contain data, the method fails."

How can I modify range object which has some empty data in the range?
Thanks
Daniel
 
A

Andy Pope

Hi,

Does the range you are referencing contain data? Empty cells or those
containing #N/A can cause problems when using the charting section of
the object model.

Cheers
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top