+ Reply to Thread
Results 1 to 4 of 4

Find [VALUE] then store True/False

  1. #1
    Registered User
    Join Date
    05-07-2008
    Location
    Milwaukee, Wisconsin
    Posts
    55

    Question Find [VALUE] then store True/False

    I want to search the active worksheet for the words "dunnage", "dun", and "dunn" and if any one of those values are present I'd like a variable (Dun) set to "true". If not present, then set to "false". I can't figure out the script to do this.

    public variable name: Dun

    Probably a simple request for a guru out there.

    Thanks!
    Ryan Ziegler
    Systems Administrator

    Timber Creek Resource, LLC
    Midwest's Largest Manufacturer of Custom Pallets, Boxes, and Crates.

    Click here to visit our website: Pallets, Boxes, Crates from Milwaukee, Wisconsin

  2. #2
    Registered User
    Join Date
    03-08-2007
    Posts
    93

    Re: Find [VALUE] then store True/False

    Create a cell with the range name "CheckDun" a a formula '=countif[range to search],"*dun")

    Code: if range("CheckDun").Value > = 0 then
    then true else false

  3. #3
    Registered User
    Join Date
    03-08-2007
    Posts
    93

    Re: Find [VALUE] then store True/False

    Sorry - hit enter too soon, but you get the idea

  4. #4
    Registered User
    Join Date
    05-07-2008
    Location
    Milwaukee, Wisconsin
    Posts
    55

    Re: Find [VALUE] then store True/False

    Thanks! This should get me started!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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