+ Reply to Thread
Results 1 to 2 of 2

Transfer characters to cell by Userform

  1. #1
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Transfer characters to cell by Userform

    The code below allows you to edit the contents of a cell by typing, and preserves the fonts when a character is typed.

    The fonts are thrown out in the following two cases.
    1. If you press several keys in quick succession (different characters).
    2. If you press and hold a key.

    I've tried counters and boolean expressions but these are not processed in logical order in the above two cases (for example, 2 KeyDown events are recorded followed by 2 KeyUp events ... instead of 1 Down, 1 Up, 1 Down, 1 Up).

    The resolution so far is to use a Timer function, if a character is entered too quickly, then nothing happens.

    I was wondering if there was another way instead of a Timer?


    Call Sub
    Please Login or Register  to view this content.
    ClassTyping
    Please Login or Register  to view this content.
    Form Code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Un-Do Re-Do; 10-02-2020 at 05:14 AM.

  2. #2
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: Transfer characters to cell by Userform

    Does anyone think it may be possible? Or just abandon?

+ 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. [SOLVED] Userform, transfer characters to cells by typing
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2020, 03:41 AM
  2. VBA Multipage Userform.: transfer textbox fields from a multipage userform to a cell
    By TheGiantJudge in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2019, 01:26 PM
  3. [SOLVED] Userform, transfer string to cell, preserve formatting
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2019, 12:35 AM
  4. Userform TextBox date transfer to cell as text
    By Eslam_98 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-08-2019, 11:19 AM
  5. [SOLVED] Transfer Data From Userform Textbox to Specific Cell
    By ShakJames in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-03-2017, 06:51 AM
  6. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-04-2014, 07:11 AM
  7. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2014, 12:28 PM

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