xgary.wilsonx
New Member
- Joined
- Dec 17, 2009
- Messages
- 40
Good Morning
CAn someone tell me if its possible to write a macro that will ammend the code in other Macros?
I have the code below, but i want the users to be able to amend the range (highlighted in RED) ideally by entering a number on the sheet and hitting a button to activate a macro that will amend the code.
Sub Columns2()
'
' Columns2 Macro
' Macro recorded 22/12/2009 by WGS
'
'
ActiveSheet.ChartObjects("Chart 1026").Activate
ActiveChart.ChartArea.Select
ActiveChart.SetSourceData Source:=Sheets("Auto").Range("A40:C69"), PlotBy:= _
xlColumns
ActiveWindow.Visible = False
Windows("graphs GW v2.xls").Activate
Range("B37").Select
End Sub
Any takers??
Many thanks in advance
Gary
CAn someone tell me if its possible to write a macro that will ammend the code in other Macros?
I have the code below, but i want the users to be able to amend the range (highlighted in RED) ideally by entering a number on the sheet and hitting a button to activate a macro that will amend the code.
Sub Columns2()
'
' Columns2 Macro
' Macro recorded 22/12/2009 by WGS
'
'
ActiveSheet.ChartObjects("Chart 1026").Activate
ActiveChart.ChartArea.Select
ActiveChart.SetSourceData Source:=Sheets("Auto").Range("A40:C69"), PlotBy:= _
xlColumns
ActiveWindow.Visible = False
Windows("graphs GW v2.xls").Activate
Range("B37").Select
End Sub
Any takers??
Many thanks in advance
Gary