+ Reply to Thread
Results 1 to 2 of 2

Please help with this chart

Hybrid View

  1. #1
    alvin Kuiper
    Guest

    Please help with this chart

    Hi
    HAve seen a answer from Bob Phillips and try this
    Sheets("Ark1").Select
    cLastRow = Cells(Rows.Count, "B").End(xlUp).Row

    Range("A1:B" & cLastRwo).Select
    Charts.Add
    ActiveChart.ChartType = xlColumnClustered
    ActiveChart.SetSourceData Source:=Sheets("Ark1").Range("A1:B" &
    cLastRwo), PlotBy:= _
    xlRows
    ActiveChart.Location Where:=xlLocationAsNewSheet
    With ActiveChart
    .HasTitle = False
    .Axes(xlCategory, xlPrimary).HasTitle = False
    .Axes(xlValue, xlPrimary).HasTitle = False
    End With
    But get an error in
    Range("A1:B" & cLastRwo).Select

    CAn someone help here ?

    Alvin



  2. #2
    alvin Kuiper
    Guest

    RE: Please help with this chart

    Sorry
    Stupid error
    have find it

    Alvin


    "alvin Kuiper" wrote:

    > Hi
    > HAve seen a answer from Bob Phillips and try this
    > Sheets("Ark1").Select
    > cLastRow = Cells(Rows.Count, "B").End(xlUp).Row
    >
    > Range("A1:B" & cLastRwo).Select
    > Charts.Add
    > ActiveChart.ChartType = xlColumnClustered
    > ActiveChart.SetSourceData Source:=Sheets("Ark1").Range("A1:B" &
    > cLastRwo), PlotBy:= _
    > xlRows
    > ActiveChart.Location Where:=xlLocationAsNewSheet
    > With ActiveChart
    > .HasTitle = False
    > .Axes(xlCategory, xlPrimary).HasTitle = False
    > .Axes(xlValue, xlPrimary).HasTitle = False
    > End With
    > But get an error in
    > Range("A1:B" & cLastRwo).Select
    >
    > CAn someone help here ?
    >
    > Alvin
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1