+ Reply to Thread
Results 1 to 4 of 4

Tricky SelStart problem

  1. #1
    Registered User
    Join Date
    11-04-2019
    Location
    Moon
    MS-Off Ver
    2016
    Posts
    2

    Tricky SelStart problem

    Dear all

    Let a userform (formCOMMENTS) contain a textbox (TEXTBOX1) with multiline property activated (text is continuous) and standard dimensions.
    Let the character length of each line be 20.

    The following code upon execution returns 0 (as originally set) in cell A1, where I expected it to return 21:

    Please Login or Register  to view this content.


    Note that cursor DOES go down but new cursor (SelStart) position cannot be given by code.
    Any ideas?

    Thank you in advance.
    Jok
    Last edited by jokjacky; 11-05-2019 at 04:22 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Tricky SelStart problem

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-04-2019
    Location
    Moon
    MS-Off Ver
    2016
    Posts
    2

    Re: Tricky SelStart problem

    Apologies and will do.

    I've simplified the content a little bit.
    Any ideas?

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Tricky SelStart problem

    Administrative Note:

    Hi and welcome
    although we value privacy as much as anyone else, it could be important that members have a rough idea of your location. You might in the future post questions which are bound to your regional settings.
    So, please update your profile to something more precise then "Moon" ( country will suffice, no need to be more precise).
    Thank you for helping us to help you

+ 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. Tricky Problem
    By leao67 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2014, 12:39 AM
  2. Textbox.selstart
    By edatawiz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2009, 04:57 PM
  3. Help required for a tricky problem(s)
    By zybatu01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-03-2008, 12:19 PM
  4. [SOLVED] Keydown and SelStart problem
    By jase in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2005, 09:50 AM
  5. [SOLVED] Problem SelStart and SelLength
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2005, 07:15 AM
  6. Tricky Problem
    By pytelium in forum Excel General
    Replies: 6
    Last Post: 08-13-2005, 05:44 PM
  7. borders - tricky problem
    By joule in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2005, 03:57 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