+ Reply to Thread
Results 1 to 13 of 13

Transform into ActiveX Control

  1. #1
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Post Transform into ActiveX Control

    Good day everyone...

    I have file already working but i need some revision and additional too...
    Search box is from cell B2 (working)
    I want to transform it into ActiveX control (text box)
    and additional option button (activeX) with vbacode to search batch code number...

    Thank you in advance...
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Transform into ActiveX Control


    Hi !

    My 2 cents ppv : if you are not on your own with your workbook so if you share it on another computers with different Excel versions
    so avoid any ActiveX control …

  3. #3
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Transform into ActiveX Control

    for one computer only but with other users just in case im not available...
    and some users are not aware if they mess up that's why im thinking about textbox
    instead of searchbox in cell...

  4. #4
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Post Re: Transform into ActiveX Control

    I need some help for adjustment on searchbox(activeX control).
    1. I've got an error when i enter empty (Run-time error: 13 (Type mismatch)
    2. when (no data enter) or (no matched data) should be return to searchbox after the message box.
    3. additional vba code for option button (Batch Code No.)
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Transform into ActiveX Control

    1) Add CommandButton (CommandButton1), then add code
    Please Login or Register  to view this content.
    2) Replace "SearchSerial" with code below.
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Transform into ActiveX Control

    Thank you once again Mr. Jindon...
    But i manage to put SearchBox_KeyUp (Enter key) and end up on looping message box when no data enter or no matched data unless i press escape key or by mouse button to return to Searchbox.
    Is there any way to stop looping when i press OK button with [enter] key and promptly return to searchbox?

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Transform into ActiveX Control

    Then use KeyDown, instead of KeyUp.

  8. #8
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Transform into ActiveX Control

    It works... Thank you very much Mr. Jindon...
    by the way can i use * or ? to search before or after batch code#?

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Transform into ActiveX Control

    It depends on how you want it.

    I you want any part a(i, 6) Like "*" & myNum & "*", my code should match only exact match within a string.

  10. #10
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Transform into ActiveX Control

    i got an error after changing the pattern

    Run-time error '5018':
    Application-defined or object-defined error
    on
    Please Login or Register  to view this content.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Transform into ActiveX Control

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Transform into ActiveX Control

    Working awesome...
    Thank you so much for your support Mr. Jindon...

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Transform into ActiveX Control

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Code works with Combo Box-Form Control, but not with Combo box - ActiveX Control
    By nangys in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2014, 08:51 AM
  2. Form Control or ActiveX control?
    By mcctrader in forum Excel General
    Replies: 0
    Last Post: 08-22-2012, 10:52 AM
  3. Add ActiveX Control with VBA
    By Steve_Courts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2011, 04:34 AM
  4. Control Forms or ActiveX Control
    By ASPERO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2011, 04:57 PM
  5. [SOLVED] How to control "Date Time Picker ActiveX Control"
    By Jafery in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2005, 10:05 AM
  6. [SOLVED] Tab to an ActiveX control?
    By Karin in forum Excel General
    Replies: 0
    Last Post: 07-06-2005, 01:05 AM
  7. ActiveX Control
    By Cromme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2005, 10:06 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