Svgmassive
asked on
font dialog in office 64bit
I am looking for a working 64 bit font dialog box.i would like to attache it to a command button to display as a popup from a ms access form.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How about a little more information ;-)
How did you use the code? On which line do you get a error? What is the error number?
How did you use the code? On which line do you get a error? What is the error number?
ASKER
it ran but the dialog never showed
How did you run the code?
Run this code (obviously, you must change TextBoxName to a name of a textbox on your form):
Sub Demo()
Dim blnRet As Boolean
blnRet = test_DialogFont(Me.TextBox Name)
End Sub
Run this code (obviously, you must change TextBoxName to a name of a textbox on your form):
Sub Demo()
Dim blnRet As Boolean
blnRet = test_DialogFont(Me.TextBox
End Sub
ASKER
yep i did that bu it does work in ms access 64bit system and that is what i am looking for
can you upload a sample file?
ASKER
It fails here it returns 0
lLogFontAddress = GlobalLock(lMemHandle)
If lLogFontAddress = 0 Then
DialogFont = False
Exit Function
End If
lLogFontAddress = GlobalLock(lMemHandle)
If lLogFontAddress = 0 Then
DialogFont = False
Exit Function
End If
Replace line 170 with this:
You may also have to replace line 139 (of the original code with this:
#If VBA7 And Win64 Then
Dim lLogFontAddress As LongPtr, lMemHandle As LongPtr
#Else
Dim lLogFontAddress As Long, lMemHandle As Long
#End If
You may also have to replace line 139 (of the original code with this:
#If VBA7 And Win64 Then
Dim dwBytePoint As LongPtr, dwByteVal As LongPtr
#Else
Dim dwBytePoint As Long, dwByteVal As Long
#End If
Dim szOut As String
ASKER
Macro,I tried but it still fails at the same line of code.I just cant get it to work in 64bit vba have been searching the web for an alternative.
Thanks
Thanks
ASKER
hi macro i am up to the if ChooseFont(FS)=1
it fails to open any suggestion.THanks
it fails to open any suggestion.THanks
Is this issue solved?
ASKER
thanks