Thread: [Solved] Help with if then statements
View Single Post
 
Old 07-21-2015, 04:45 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,379
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by brent chadwick View Post
1) I need to take out the 1890 as there is no census for that decade.
the simplest solution for that is to change:
.Add Name:=i
to:
If i <> 1890 Then .Add Name:=i
Quote:
Originally Posted by brent chadwick View Post
2) When I create a toolbar for this doc both of the macros do not show up in the commands section. Why is that?
Are you adding the macros to your template and creating the 'toolbar' in that? Note, too, that the document I returned references Word's Normal template, not the template attached to post #30.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote