Home |
Search |
Today's Posts |
#13
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
the lines arre getting wraped. In basic, if instructions is used on more
than one line the continuation character _ (underline) needs to be added to the end of a line. Add _ to end of the 1st two lines or make these 3 lines 1 line ------------------------------------------------------------------------------------- ActiveChart.SetSourceData Source:=Sheets(MyWorksheet.name).Range("A1:B501"), PlotBy:=xlColumns ----------------------------------------------------------------------------------- "Dr Dan" wrote: It's still getting the same error... here's the latest version I have Sub Macro5() ' ' Macro5 Macro ' Macro recorded 23/02/2007 by Dan ' ' Keyboard Shortcut: Ctrl+g ' For Each MyWorksheet In ThisWorkbook.Worksheets Worksheets(MyWorksheet.Name).Select Columns("A:B").Select Charts.Add ActiveChart.ChartType = xlXYScatterSmoothNoMarkers ActiveChart.Location Whe=xlLocationAsObject, Name:=MyWorksheet.Name With ActiveChart.Axes(xlCategory) .HasMajorGridlines = False .HasMinorGridlines = False End With With ActiveChart.Axes(xlValue) .HasMajorGridlines = True .HasMinorGridlines = False End With ActiveWindow.Visible = False Windows("Master data.xls").Activate Next MyWorksheet End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
E-mailing the active worksheet | Excel Worksheet Functions | |||
name an active worksheet | Excel Worksheet Functions | |||
How to Add Rows From Active Cell with in a XLL Code | Excel Worksheet Functions | |||
how can I get the name of the active worksheet? | Excel Worksheet Functions | |||
email active worksheet | Excel Discussion (Misc queries) |