+ Reply to Thread
Results 1 to 2 of 2

trim to match two sets of input-trim spaces around a character

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    trim to match two sets of input-trim spaces around a character

    I am trying to search a database that uses entries "12 - 151C4993" in one format with a validated comboBox I must use and these entries are "151 C 4993" - (two sections of the company with different tenets)

    The ComboBox entry that will be my search value will be "151 C 4993". I was trying to use Trim to tidy the comboBox entry in the search macro before matching and need to remove the spaces either side of the character

    Please Login or Register  to view this content.
    The result I expected was "151" what I got was "151 C"
    Any ideas on a methodology to match these

    the search code is
    Please Login or Register  to view this content.
    pointers appreciated
    Last edited by nigelog; 09-21-2017 at 12:34 PM.

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: trim to match two sets of input-trim spaces around a character

    Found a way to pass the trimmed comboBox entry

    Please Login or Register  to view this content.


    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove Spaces, Trim?
    By cybercab in forum Excel General
    Replies: 3
    Last Post: 02-11-2023, 02:39 PM
  2. [SOLVED] Extra space or spaces in Text in Forum Post. BB Code for extra space ?
    By Doc.AElstein in forum The Water Cooler
    Replies: 21
    Last Post: 03-02-2016, 02:59 PM
  3. [SOLVED] Formula for removing space or unknown character. (Trim is not working)
    By senthile in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-06-2014, 04:08 PM
  4. Trim Spaces(all)
    By JapanDave in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2012, 10:05 PM
  5. Can't 'trim' or 'clean' spaces
    By [email protected] in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2010, 07:06 PM
  6. Trying to trim a trailing space char and the Trim function isn't working
    By Psychochook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2007, 11:28 PM
  7. trim leading spaces
    By [email protected] in forum Excel General
    Replies: 10
    Last Post: 05-11-2006, 04:25 PM

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