Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Two condition on REPLaCE (2000 sr 1)

    ... is possible to insert another condition REPLACE into this line:

    Range("L" + RIGA2) = Replace(Trim(Sess0.SCREEN.GETSTRING(16, 35, 16)), " 242-EUR", "")

    for example this" 001-$" (note: are present 2 blank before value)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Two condition on REPLaCE (2000 sr 1)

    You can nest multiple Replace functions:

    Range("L" & RIGA2) = Replace(Replace(Trim(Sess0.SCREEN.GETSTRING(16, 35, 16)), " 242-EUR", ""), " 001-$", "")

    (Add the correct number of spaces, they are not shown here)

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Two condition on REPLaCE (2000 sr 1)

    Kiss...

Posting Permissions

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