Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default running macro's in Excel 2007

Quick question,

How can I replace a VB macro I run in Excel 2003 with a similar function in
Excel 2007.

the Macro sets a rolling date range in charts in the workbook.

I printed out the Excel 2003 macro below - do I just need to re-record it in
Excel 2007?

A boggled TexasTonie

Dim MinDate As Long
Dim MaxDate As Long

Sheets("ChartdatesRefresh").Select

Range("c2").Select
MinDate = ActiveCell.Value
Range("c3").Select
MaxDate = ActiveCell.Value

'
Sheets("MPC Daily").Select
ActiveChart.Axes(xlCategory).Select
With ActiveChart.Axes(xlCategory)
.MinimumScale = MinDate
.MaximumScale = MaxDate
End With
Sheets("GPC Daily").Select
ActiveChart.Axes(xlCategory).Select
With ActiveChart.Axes(xlCategory)
.MinimumScale = MinDate
.MaximumScale = MaxDate
End With
Sheets("Daily P Centers").Select
ActiveChart.Axes(xlCategory).Select
With ActiveChart.Axes(xlCategory)
.MinimumScale = MinDate
.MaximumScale = MaxDate
End With


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
Excel 2007 running out of resources Dave Barkley Excel Discussion (Misc queries) 0 September 24th 08 08:53 PM
Running Excel 2003 & 2007 Ultimate Offroad Excel Discussion (Misc queries) 4 May 14th 08 06:53 PM
EXCEL 2007 IS RUNNING, DIDN'T REQUEST IT, HOW TO GET RID OF IT guccigonzo Excel Discussion (Misc queries) 1 March 18th 08 11:32 PM
Hide Macro's in Toolbar / Macro's list sparx Excel Discussion (Misc queries) 2 May 6th 06 08:53 PM
Running XY chart labeller using a macro's parameters and arguments. Hari Prasadh Charts and Charting in Excel 1 July 12th 05 05:00 PM


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