+ Reply to Thread
Results 1 to 5 of 5

Invalid Qualifier

  1. #1
    Stuart
    Guest

    Invalid Qualifier

    For Each C In myRng
    With C
    S = CStr(C.Value)
    S = UCase(WorksheetFunction.Clean _
    (WorksheetFunction.Trim(S)))
    C = S.Value '*
    .WrapText = True
    .Rows.AutoFit
    End With
    Next C

    S is Dimmed as a String.
    On the marked line (*) I'm getting an Invalid Qualifier error message.

    Why please?

    Regards.



  2. #2
    Don Guillett
    Guest

    Re: Invalid Qualifier

    try it with c.value=s

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:uOMAQCeRFHA.3684@TK2MSFTNGP10.phx.gbl...
    > For Each C In myRng
    > With C
    > S = CStr(C.Value)
    > S = UCase(WorksheetFunction.Clean _
    > (WorksheetFunction.Trim(S)))
    > C = S.Value '*
    > .WrapText = True
    > .Rows.AutoFit
    > End With
    > Next C
    >
    > S is Dimmed as a String.
    > On the marked line (*) I'm getting an Invalid Qualifier error message.
    >
    > Why please?
    >
    > Regards.
    >
    >




  3. #3
    Stuart
    Guest

    Re: Invalid Qualifier

    That worked, many thanks.

    now, if I could just find how to achieve the same,
    but without converting to upper case.

    Regards.

    "Don Guillett" <donaldb@281.com> wrote in message
    news:%23TlveFeRFHA.4028@tk2msftngp13.phx.gbl...
    > try it with c.value=s
    >
    > --
    > Don Guillett
    > SalesAid Software
    > donaldb@281.com
    > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > news:uOMAQCeRFHA.3684@TK2MSFTNGP10.phx.gbl...
    >> For Each C In myRng
    >> With C
    >> S = CStr(C.Value)
    >> S = UCase(WorksheetFunction.Clean _
    >> (WorksheetFunction.Trim(S)))
    >> C = S.Value '*
    >> .WrapText = True
    >> .Rows.AutoFit
    >> End With
    >> Next C
    >>
    >> S is Dimmed as a String.
    >> On the marked line (*) I'm getting an Invalid Qualifier error message.
    >>
    >> Why please?
    >>
    >> Regards.
    >>
    >>

    >
    >




  4. #4
    Don Guillett
    Guest

    Re: Invalid Qualifier

    glad to help

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:%23jh4VWeRFHA.1096@tk2msftngp13.phx.gbl...
    > That worked, many thanks.
    >
    > now, if I could just find how to achieve the same,
    > but without converting to upper case.
    >
    > Regards.
    >
    > "Don Guillett" <donaldb@281.com> wrote in message
    > news:%23TlveFeRFHA.4028@tk2msftngp13.phx.gbl...
    > > try it with c.value=s
    > >
    > > --
    > > Don Guillett
    > > SalesAid Software
    > > donaldb@281.com
    > > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > > news:uOMAQCeRFHA.3684@TK2MSFTNGP10.phx.gbl...
    > >> For Each C In myRng
    > >> With C
    > >> S = CStr(C.Value)
    > >> S = UCase(WorksheetFunction.Clean _
    > >> (WorksheetFunction.Trim(S)))
    > >> C = S.Value '*
    > >> .WrapText = True
    > >> .Rows.AutoFit
    > >> End With
    > >> Next C
    > >>
    > >> S is Dimmed as a String.
    > >> On the marked line (*) I'm getting an Invalid Qualifier error message.
    > >>
    > >> Why please?
    > >>
    > >> Regards.
    > >>
    > >>

    > >
    > >

    >
    >




  5. #5
    Tom Ogilvy
    Guest

    Re: Invalid Qualifier

    Converting to Uppercase isn't doing anything in the code you show, so remove
    the Ucase() from your code if that is what you are wishing for. Certainly
    Clean and Trim don't depend on it and as written, they have completed their
    work before anything is changed to uppercase.

    --
    Regards,
    Tom Ogilvy

    "Stuart" <sgbooth@totalise.co.uk> wrote in message
    news:%23jh4VWeRFHA.1096@tk2msftngp13.phx.gbl...
    > That worked, many thanks.
    >
    > now, if I could just find how to achieve the same,
    > but without converting to upper case.
    >
    > Regards.
    >
    > "Don Guillett" <donaldb@281.com> wrote in message
    > news:%23TlveFeRFHA.4028@tk2msftngp13.phx.gbl...
    > > try it with c.value=s
    > >
    > > --
    > > Don Guillett
    > > SalesAid Software
    > > donaldb@281.com
    > > "Stuart" <sgbooth@totalise.co.uk> wrote in message
    > > news:uOMAQCeRFHA.3684@TK2MSFTNGP10.phx.gbl...
    > >> For Each C In myRng
    > >> With C
    > >> S = CStr(C.Value)
    > >> S = UCase(WorksheetFunction.Clean _
    > >> (WorksheetFunction.Trim(S)))
    > >> C = S.Value '*
    > >> .WrapText = True
    > >> .Rows.AutoFit
    > >> End With
    > >> Next C
    > >>
    > >> S is Dimmed as a String.
    > >> On the marked line (*) I'm getting an Invalid Qualifier error message.
    > >>
    > >> Why please?
    > >>
    > >> Regards.
    > >>
    > >>

    > >
    > >

    >
    >




+ 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