#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Dialog Box

I'm pretty new to this and I can't figure out what I'm
doing wrong. I'm trying to let the user pick a font and
then change several worksheets accordingly.

This is what I have tried and all its doing is changing
the row and column numbers to the font that is picked.
Very weird, I didn't even know you could do that!

Any help will be greatly appreciated.

Sub Font()
'
' ChangeFont Macro
' Macro recorded 05/12/2004 by Cindy Jordan
'
Dim dlgAnswer As Boolean
Dim objFontChoice As Font
Sheets("MedRates").Select
Range("a1").Select
dlgAnswer = Application.Dialogs(xlDialogFont).Show
If dlgAnswer = False Then Exit Sub
Set objFontChoice = Selection.Font

Sheets(Array
("Coversheet", "MedRates", "MedBenefits", "DentalRates", _
"DentalBenefits", "STD", "LTD", "Life")).Select
Sheets("MedRates").Select
Range("a1:ax1").Select
With Selection.Font
.Name = objFontChoice.Name
End With
Range("A1").Select
Sheets("MedRates").Select

End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Dialog Box

Cindy



This is what I have tried and all its doing is changing
the row and column numbers to the font that is picked.
Very weird, I didn't even know you could do that!


Me either. Use this

dlgAnswer = Application.Dialogs(xlDialogFontProperties).Show


--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dialog Pop Up Box Linda D F Excel Discussion (Misc queries) 1 May 16th 08 08:31 PM
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
dialog box alm09 Excel Discussion (Misc queries) 1 March 31st 06 05:50 PM
Dialog Box Aussie Excel Discussion (Misc queries) 1 March 7th 05 03:56 PM
Dialog box on the fly. Michael Beckinsale Excel Programming 2 November 20th 03 02:46 PM


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"