msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

vb code for mailmerge checkbox?

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
rock



Joined: 04 Oct 2007
Posts: 2

PostPosted: Tue Oct 25, 2005 12:53 pm    Post subject: vb code for mailmerge checkbox? Reply with quote

I have a vb mailmerge application in progress and all is working as I
expect until I try and display the checkbox (with or without a tick)

Googling has all info for doing this in the template, but I create the
template the fly through VB6.

The data source is and Access database with the field data type set to
Yes/no and the lookup as checkbox.

I have tried unsuccessfully the line of code below.

wrdMergeFields.AddIf Range:=Selection.Range, mergefield:="local_email",
Comparison:=wdMergeIfEqual, CompareTo:=0, TrueAutoText:="",
TrueText:=Chr(168), FalseAutoText:="", FalseText:=Chr(254)

In fact I cant seem to change the font for this at at all.

Any help would be appreciated. The chr(168) is for wingdings font.

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
OLE MailMerge I am trying to use the function and Connection argument to access the SQL Server to get data for a MailMerge. The options I found is using OLEDB, ODBC, DDE, and ODSO, but none from them is my option - my application needs to be installed in

QueryString in MailMerge not working I'm new here so please feel free to point me to another group if this is not the right one. I'm using the following VB code to conduct a Mail Merge. The code is running on XP under MSO 03 (Word VBA6) This code simply opens the template file (if it is not

DragDrop not working when code exceuted using RunAs I have a program that is started using RunAs (both from command line and another application). When run this way OLEDragDrop in VB6 and DragDrop in VB.net fail to trigger. Can anyone tell me how to get around this? I have to run the program as a different

how to show the "txt code" that the WebBrowser wont to save how to show the "txt code" that the WebBrowser wont to save when he wont to save html+pictures with the "dialogbox" - before saving. this is the code to open the save "dialogbox" 0, 0 this i

checkbox Hi, When the value is true, If the Appearance property of the checkbox is set to Button, the control will appear sunken when Checked is true and raised like a standard button when false. If I want to return to a standard button after click, all I need is
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group