+ Reply to Thread
Results 1 to 3 of 3

Combobox rowsource

  1. #1
    Marinos Andreou
    Guest

    Combobox rowsource

    The following line:
    CboCase.RowSource = "'[Computer Price calculator.xls]Case'!$A$2:$B$4"
    gives an error message: "runtime error 380.Could not set the Rowsource
    property. Invalid property value"

    The problem does not appear if I remove the spaces from the file name and
    the single quotes but it appears if I remove the spaces and leave the single
    quotes in place. Does anyone know how to make it work without having to
    remove the spaces from the filename?

    Thanks in advance
    --
    Marinos Andreou
    B.Sc Computer Engineering
    mobile: 99-533228



  2. #2
    Bob Phillips
    Guest

    Re: Combobox rowsource

    Marinos,

    There is absolutely no problem with spaces in the name, so it is not that.
    Most likely, you think there is one space and there is actually 2 or more.
    Double check the name and the number of spaces.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Marinos Andreou" <marinosa@gawab.com> wrote in message
    news:%237%23uwS4PGHA.2912@tk2msftngp13.phx.gbl...
    > The following line:
    > CboCase.RowSource = "'[Computer Price calculator.xls]Case'!$A$2:$B$4"
    > gives an error message: "runtime error 380.Could not set the Rowsource
    > property. Invalid property value"
    >
    > The problem does not appear if I remove the spaces from the file name and
    > the single quotes but it appears if I remove the spaces and leave the

    single
    > quotes in place. Does anyone know how to make it work without having to
    > remove the spaces from the filename?
    >
    > Thanks in advance
    > --
    > Marinos Andreou
    > B.Sc Computer Engineering
    > mobile: 99-533228
    >
    >




  3. #3
    Marinos Andreou
    Guest

    Re: Combobox rowsource

    Thank you for your answer. I was setting a cell with the range reference and
    then setting the rowsource property with the value stored in the cell but
    the cell was eating up the first quote. Adding another quote infront of the
    range string before storing in the cell did it.

    Regards

    Marinos Andreou

    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:%23l$IXi4PGHA.5152@TK2MSFTNGP10.phx.gbl...
    > Marinos,
    >
    > There is absolutely no problem with spaces in the name, so it is not that.
    > Most likely, you think there is one space and there is actually 2 or more.
    > Double check the name and the number of spaces.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from email address if mailing direct)
    >
    > "Marinos Andreou" <marinosa@gawab.com> wrote in message
    > news:%237%23uwS4PGHA.2912@tk2msftngp13.phx.gbl...
    >> The following line:
    >> CboCase.RowSource = "'[Computer Price calculator.xls]Case'!$A$2:$B$4"
    >> gives an error message: "runtime error 380.Could not set the Rowsource
    >> property. Invalid property value"
    >>
    >> The problem does not appear if I remove the spaces from the file name and
    >> the single quotes but it appears if I remove the spaces and leave the

    > single
    >> quotes in place. Does anyone know how to make it work without having to
    >> remove the spaces from the filename?
    >>
    >> Thanks in advance
    >> --
    >> Marinos Andreou
    >> B.Sc Computer Engineering
    >> mobile: 99-533228
    >>
    >>

    >
    >




+ 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