+ Reply to Thread
Results 1 to 3 of 3

Masked characters Inputbox

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2016
    Posts
    49

    Masked characters Inputbox

    Hi,

    I stumbled upon some code that Daniel Klann wrote a few years ago for Excel 97 that someone has modified to run in 2000+ that enables masking of characters using an InputBox, rather than a Userform. This works great when using it in a normal module, but won't work if I try use it in the "ThisWorkbook" Project module...it gives an error relating to the AddressOf part of the function in this line:
    Please Login or Register  to view this content.
    I realise this isn't a simple method to use, but it simplifies the end use. Does anyone have any ideas on how to get this working in the ThisWorkbook module? As I want this to run when users open the Workbook.

    I've split the code Daniel wrote and my sub below:


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Cheers,
    Dan

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Masked characters Inputbox

    did you put daniels code into a module?

    i used his code in sample workbook that opens inputboxDK and msgbox
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-14-2013
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2016
    Posts
    49

    Re: Masked characters Inputbox

    Thanks so much, I was keeping Daniel's code within the Workbook code. Works perfectly now having it in a module.

+ 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 TextBox Conditional Masked Format
    By saucey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2012, 12:14 PM
  2. Show Inputbox characters as starts
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2009, 03:45 AM
  3. Dots, instead of characters in InputBox
    By Gabor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-18-2007, 03:36 AM
  4. How do I restrict an inputbox to 5<= string characters?
    By Gabe Tiger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2006, 02:08 AM
  5. Masked Edit Controls Excel 2002
    By scubadude in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2005, 11:09 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