Results 1 to 2 of 2

How to use InStr function to search for a text that starts with "CTF" and ends with "."?

Threaded View

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97

    How to use InStr function to search for a text that starts with "CTF" and ends with "."?

    so what i really want to do is that if a user types CTF in the tb then whatever follows is searched in a range(a1:A20) and then it returns the value to anther tb named tb1 , now when i put a "." i want the range(ctf) to have the value which appears in the tb1. my main textbox is named notes

    in short i want to trigger the following event if notes has a text that starts with CTF and ends with .

    i want the value of range("CTF") to change to whatever appears in tb1

    sort of like if instr(notes.text, "CTF" & * & ".") then
    range(ctf).value= tb1.value
    end if
    Last edited by yoursamrit2000; 12-27-2014 at 03:50 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  2. Replies: 1
    Last Post: 08-10-2014, 01:22 PM
  3. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM

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