[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


In VBA print "box" (Windings q)

Posted on 2004-10-30
Medium Priority
Last Modified: 2008-03-17
I have a VBA macro that prints a checkoff list. I want it to print a box, which I can get in Word with a Windings letter q. I have the followng in my code:

    Selection.Font.Name = "Windings"
    Selection.TypeText Text:="q"

but it just prints the letter q. If I manually select the q and then select Format|Font|Wingdings, the q gets converted to the box I want.
Question by:cbutton
  • 2
LVL 81

Expert Comment

ID: 12454514
Hi cbutton,
You didn't say which application you were using. In Excel, you can do it like this:

Sub SquareBox()
With Selection
    .Font.Name = "Wingdings"
    .Value = "q"
End With
End Sub



Accepted Solution

david_barker earned 1000 total points
ID: 12456243
I assume (and tested in Word) this is just a typo problem : replace "Windings" by "Wingdings" (with a "g" between "n" and "d").
I should work !


Author Comment

ID: 12457242
Sorry I didn't name the application. It is MS Word.

I'll try the two suggestions when I get back this afternoon.l

Author Comment

ID: 12457526
david_barker: I don't know how many times I looked at that "windings" and saw "wingdings." I'm sure glad you spotted it! Thanks.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application.  Its compatibility with Microsoft applications like Exch…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question