+ Reply to Thread
Results 1 to 3 of 3

excel database to auto correct what i typing on textbox

  1. #1
    Registered User
    Join Date
    12-15-2020
    Location
    uae
    MS-Off Ver
    2016
    Posts
    2

    excel database to auto correct what i typing on textbox

    hello guys

    i have an idea but i can't do it by my self

    I made sheet, with column "A" wrong word spelling and column "b" for correct spilling also i can put full sentences and correct it in column "B"
    and made userform with textbox put this code inuserform

    Please Login or Register  to view this content.
    and made new module for this code

    Please Login or Register  to view this content.
    this code is work perfect but there is dumb problem

    The problem with this code is that it replaces the word as soon as it finds it separately in the database, even though there is the same word inside the sentence of the code, it tracks it at the same time. If the code changes the word, the code will fail to match the sentence because a word within the sentence has been corrected, and this will lead to failure The sentence because it is not completely identical to a sentence in the database, and that is why we need code that does not correct the single word as long as the code follows the sentence until it is sure that it was completely written correctly and says to replace it. By correcting the word that he left without correcting, because that is the correct procedure. He left the word without replacing it because it is within a sentence that is currently being tracked. With these words, I do not say that he never replaces a word as long as he finds it within a sentence, but I say that he does not replace the word in the event that it is tracking a sentence. Basically, let's explain it through an example. There are 3 data and correct them in the database.
    The first statement in the first column is "rad" and corrected in the second column is "read" like this
    The second statement is "mohmd rad the bok" and corrected by "mohamed read the book" in this way
    The third statement is ?mohmd? and its correction is ?mohamed? in this way
    Now we will start typing in the text box
    And we write the first word, and let it be "mohmd" Here we will have two cases, either I will complete the sentence "mohmd rad the bok" or I will write something else that does not match the sentence in the database here. I do not want the code to replace the word "mohmd" before checking whether I will complete The sentence, or I will write something else, because if the code replaces the word ?mohmd? with the word ?mohamed? and I complete the sentence in this way ?mohmd rad the bok? then the code will not find a match and did not replace the sentence and the same idea also does not change the word ?rad? Because he is currently tracking the sentence "mohmd rad the bok". If he changes the word "rad", the sentence will not be identical. So in this example, I do not want the code to replace the word "mohmd" or the word "rad" until I complete the sentence if I write "the bok". And there is no other match in the database that completely replaces the sentence. If I don't type "the bok" and write anything else, the code understands that there is no match with the sentence and returns to correct the words it left out.

    Can any one help me, the mobile keyboard skip this problem by prevent user from put space in the shortcut
    Last edited by mohamedtaha500; 05-09-2023 at 07:29 PM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,405

    Re: excel database to auto correct what i typing on textbox

    See if this helps ...


    https://www.extendoffice.com/documen...ell-check.html

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-15-2020
    Location
    uae
    MS-Off Ver
    2016
    Posts
    2

    Re: excel database to auto correct what i typing on textbox

    Quote Originally Posted by Logit View Post
    See if this helps ...


    Please Login or Register  to view this content.
    I'm sorry this is different idea

+ 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. Auto filter listbox when typing in textbox
    By KOBBY123 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-22-2018, 03:52 AM
  2. Auto Complete Typing in an Excel from different column
    By azbi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-17-2016, 10:05 PM
  3. Replies: 1
    Last Post: 01-16-2014, 10:32 AM
  4. unlock textbox for typing
    By Isabel Lopatin in forum Excel General
    Replies: 3
    Last Post: 01-31-2013, 12:33 PM
  5. [SOLVED] I need help getting Excel to auto-fill cells when I begin typing .
    By todd in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-25-2010, 11:32 PM
  6. Stopping user from typing in textbox
    By dextras in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2009, 06:49 AM
  7. I need help writing a macro that will correct typing errors?
    By notthemacroman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2006, 08:46 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