Missing quotation marks around the Range

  • I am trying to automate the plotting process.


    Simply I think I am missing the quotation marks around the Range but I do not know how put them in with an "&" sign.


    The error code is: "Parameter not Valid"


    If it is not the quotation marks maybe it is something ele I am missing.


    Here is my code:


  • Re: Missing quotation marks around the Range


    Code
    Sheets("Graph").ChartObjects("Chart 1").Chart.SeriesCollection(k).XValues = Sheets("PlotData").Range(Hex(nn) & k +3 & ":" & Hex(nn) & Max)


    is highlighted. How do you put in quotation marks so it looks like ...Range("A3:A25")? You can not put in quotes before the Hex(nn) and after Max without messing up the string. I just want to know the other way to write a single quote.

  • Re: Missing quotation marks around the Range


    Hex(1) = 1 so what do you think your range address looks like?

    Rory
    Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why. Programmers combine theory and practice: nothing works and they don’t know why

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!