LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Problem with ScaleType propert for Axis object

An application, that I originally wrote in Excel 2003 VBA, creates an Axis object (xlValue) and then sets the ScaleType property = xlLinear. When I run the application in Excel 2007, though, I get an error:

Run-time error '-2147467259 (80004005)';

Method 'ScaleType' of object 'Axis' failed.

Any idea why I would get this message? I set several other properties on this object just fine; it's only the ScaleType property that fails. Unfortunately, my Axis comes out all wrong when I don't set this property. When I run the exact same application on another machine that only has Excel 2003 on it (i.e., no Office 2007 at all), the application runs perfectly and the Axis looks beautiful.

Note, I tried changing xlLinear to the new 2007 enumeration xlScaleLinear, but that didn't help. Not surprising since the value didn't change for the enumeration, only the name.

I can provide code if anyone thinks it will help.
 
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
Extracting Relative Propert of TreeView Node ExcelMonkey Excel Programming 1 March 30th 07 12:26 AM
Unable to set the Values propert of series class smudge75 Excel Programming 0 August 16th 06 03:00 PM
Unable to set the locked propert bsherwood[_2_] Excel Programming 0 June 28th 06 08:18 PM
More chart problem Excel 97 - unable to set propert of series class Karoo News[_2_] Excel Programming 1 February 8th 06 11:38 AM
Internet Explorer Automation from Excel and the ReadyState propert rMartyr Excel Programming 1 February 3rd 06 10:44 PM


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