Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For excel97, you must add:
Private Declare Function GetCurrentVbaProject Lib "vba332.dll" Alias _ "EbGetExecutingProj" (hProject As Long) As Long Private Declare Function GetFuncID Lib "vba332.dll" Alias "TipGetFunctionId" _ (ByVal hProject As Long, ByVal strFunctionName As String _ , ByRef strFunctionID As String) As Long Private Declare Function GetAddr Lib "vba332.dll" Alias "TipGetLpfnOfFunctionId" _ (ByVal hProject As Long, ByVal strFunctionID As String _ , ByRef lpfnAddressOf As Long) As Long #If VBA6 Then #Else '* AddressOf operator replacement for Office97 VBA '* Authors: Ken Getz and Michael Kaplan Private Function AddrOf(CallbackFunctionName As String) As Long Dim aResult As Long, CurrentVBProject As Long, strFunctionID As String Dim AddressOfFunction As Long, UnicodeFunctionName As String '* Convert the name of the function to Unicode system UnicodeFunctionName = StrConv(CallbackFunctionName, vbUnicode) '* If the current VBProjects exists... If Not GetCurrentVbaProject(CurrentVBProject) = 0 Then '* ...get the function ID of the callback function, based on its '* unicode-converted name, in order to ensure that it exists aResult = GetFuncID(hProject:=CurrentVBProject, _ strFunctionName:=UnicodeFunctionName, strFunctionID:=strFunctionID) '* If the function exists indeed ... If aResult = 0 Then ' *...get a pointer to the callback function based on ' * the strFunctionID argument of the GetFuncID function aResult = GetAddr(hProject:=CurrentVBProject, _ strFunctionID:=strFunctionID, lpfnAddressOf:=AddressOfFunction) '* If we've got the pointer pass it to the result of the function If aResult = 0 Then AddrOf = AddressOfFunction End If End If End Function #End If "Eric" a écrit dans le message de ... Is it possible to put an input mask on an input box? I'd like for the user to input a password and for the characters to come up as *'s. I think this would be possible if I made a form to do it, but it would be easier if I could do it for an input box. Thanks! Eric |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Time Input Mask | Excel Discussion (Misc queries) | |||
Input Mask | Excel Worksheet Functions | |||
input mask in excel | Excel Worksheet Functions | |||
How do I add input data in the input ranges in drop down boxes. | Excel Discussion (Misc queries) | |||
Input Mask | New Users to Excel |