#1   Report Post  
Posted to microsoft.public.word.docmanagement
Ian Ian is offline
external usenet poster
 
Posts: 31
Default WORD 2003 Macro

I have a problem with a Macro created:
Sub Font()
'
' Font Macro
' Macro recorded 03/01/2007 by Administrator
'

If MsgBox("Are you sure you want a massive font?", vbYesNo, "Sure?")
= vbYes Then
Selection.WholeStory
Selection.Font.Size = 72
If MsgBox("Are you sure you want it this massive?", vbYesNo)
= vbNo Then
Selection.WholeStory
Selection.Font.Size = 32
Else
End If
Else
End If
End Sub

On some pc's where I wokr it will not change the font size until after the
second message, preventing the inital font size to change,
whereas on other machines it will change the font size before the second
message, working correctly as it should.
Any help on this would be greatly appreciated
Cheers
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default WORD 2003 Macro

You have posted in an end-user NG. For help with VBA, you would be better
advised to post in one of the word.vba NGs (such as the one titled
"Programming" in the Communities interface).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Ian" wrote in message
...
I have a problem with a Macro created:
Sub Font()
'
' Font Macro
' Macro recorded 03/01/2007 by Administrator
'

If MsgBox("Are you sure you want a massive font?", vbYesNo,

"Sure?")
= vbYes Then
Selection.WholeStory
Selection.Font.Size = 72
If MsgBox("Are you sure you want it this massive?",

vbYesNo)
= vbNo Then
Selection.WholeStory
Selection.Font.Size = 32
Else
End If
Else
End If
End Sub

On some pc's where I wokr it will not change the font size until after the
second message, preventing the inital font size to change,
whereas on other machines it will change the font size before the second
message, working correctly as it should.
Any help on this would be greatly appreciated
Cheers


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting WordPerfect 12 files to Word 2003 Curious New Users 4 May 19th 23 02:48 PM
take yet another lesson from wordperfect "reveal codes" wordperfect is superior Microsoft Word Help 5 May 11th 09 07:58 PM
How do I create Word macro that will run properly using copy/past. Joye Microsoft Word Help 1 June 23rd 06 10:41 PM
Word & WordPerfect MrsMac Microsoft Word Help 5 June 10th 06 03:14 AM
Macro for Letter Settings Help Renee Cabets New Users 7 May 25th 06 10:50 PM


All times are GMT +1. The time now is 10:47 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"