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: 3
Default Excel 2003 to 2007 VBA Change

I was testing some Excel 2003 spreadsheets with Visual Basic programming, and
found one that does not work in Excel 2007.

The code below gives a Type Mismatch error on the .MinimumScale = startmonth
and the line afterward. It looks like in Excel 2007, you cannot use a string
this way with the MinimumScale command.

Startmonth and Stopmonth are dates from the beginning and the end of a month
that are determined by a routine that goes through a list of dates until it
finds these values. startmonth and stopmonth would have values like 01/01
and 01/31. This section of programming sets up the x axis of the graph using
startmonth and stopmonth as the x axis min and max.

I am way out of practice with Visual Basic programming, so any help would be
greatly appreciated.

Chart1.Activate
ActiveChart.Axes(xlCategory).Select
With ActiveChart.Axes(xlCategory)
.MinimumScaleIsAuto = False
.MaximumScaleIsAuto = False
.MinimumScale = startmonth
.MaximumScale = endmonth
 
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
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter change back to 2003? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
Can I change Excel 2007 to 2003? I can't stand the new version. Ernest Excel Discussion (Misc queries) 4 September 29th 08 06:57 AM
change view panel excel 2007 to excel 2003 Hamed Souri Excel Discussion (Misc queries) 1 February 20th 07 03:19 AM


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