Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Hi,
I have recorded the following... Sub Macro4() ' ' Macro4 Macro ' Macro recorded 23/02/2007 by Dan ' ' Keyboard Shortcut: Ctrl+f ' Columns("A:B").Select Charts.Add ActiveChart.ChartType = xlXYScatterSmoothNoMarkers With ActiveChart.Axes(xlCategory) .HasMajorGridlines = False .HasMinorGridlines = False End With With ActiveChart.Axes(xlValue) .HasMajorGridlines = False .HasMinorGridlines = False End With ActiveWindow.Visible = False Windows("Master data.xls").Activate End Sub ....this allows me to quickly plot a chart from the current sheet. How do I specify that I want the chart as an object within the current sheet? I removed the line... ActiveChart.Location Whe=xlLocationAsObject, Name:="20305A.TXT" ....after I recorded the macro as it only places each graph in the original worksheet, not the one I am working in. My book contains many sheets of data. Can anyone please advise how I can change the macro above to work so that I can go to any worksheet and run the macro, producing a plot of the data on that sheet as an object in that sheet. Cheers, Dan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Indicate the location file on the work sheet | Excel Worksheet Functions | |||
UDF is updateing cells on another sheet with count from current sheet. | Excel Discussion (Misc queries) | |||
Track Mouse Location In a Sheet VBA | Excel Discussion (Misc queries) | |||
location of chart | Charts and Charting in Excel | |||
Can't save chart as object in current sheet | Charts and Charting in Excel |