Consulting

Results 1 to 2 of 2

Thread: Clean trim code explanation

  1. #1
    VBAX Newbie
    Joined
    Jun 2018
    Posts
    1
    Location

    Clean trim code explanation

    Hi there,
    I have the following code from the web for clean trim range. I just don't understand why is there a condition using ROW ( "IF(ROW(") and how it works. Appreciate any help. Thanks!

    r.Value = Evaluate("IF(ROW(" & r.Address & "),PROPER(TRIM(CLEAN(" & r.Address & "))))")

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    The IF(ROW()) part is there to force the result to be an array of values. (You could also use INDEX()) Without it, you'd just get one value back.
    Be as you wish to seem

Posting Permissions

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