Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2025, 04:37 AM
Aengus345 Aengus345 is offline Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Windows 10 Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Office 97-2003
Novice
Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars?
 
Join Date: Feb 2024
Posts: 8
Aengus345 is on a distinguished road
Question Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars?

Hello!



I had some very kind help a few years back and really love how the calendar wizard produces calendars with some customizations, no have loved the calendars even mor ever since.

However, I need to write more in the cells from this point forward but the day numbers are centered in the middle of each cell where they are located and the font is too big, too.

Anyone that is familiar with the old calendar wizard know where I can change it so that the boxes with the day numbers are placed in the upper left-hand corner (rather than centered), and to make the font 20pt instead of 30pt?

I've tended to move over to a calendar maker that I have over Word when I've needed printed calendars with enough space to write in, but it's so cumbersome. The MS Word calendar wizard produces any calendars I need super fast and it just needs these 2 modifications to make it work for this.

Thank you in advance for any kind help!!

Reply With Quote
  #2  
Old 02-21-2025, 04:24 PM
macropod's Avatar
macropod macropod is offline Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Windows 10 Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,465
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

Microsoft dropped all Office "wizards" many years ago. The old ones were simply templates with VBA code to select the year, etc. Without access to the one you're using for the calendar, no-one here can tell you what changes would need to be made to the code.

If you make a zip archive of your current calendar template and upload it, someone here may be able to access the code and modify it for you.

You can attach a file to a post via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-22-2025, 08:28 AM
Aengus345 Aengus345 is offline Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Windows 10 Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Office 97-2003
Novice
Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars?
 
Join Date: Feb 2024
Posts: 8
Aengus345 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Microsoft dropped all Office "wizards" many years ago. The old ones were simply templates with VBA code to select the year, etc. Without access to the one you're using for the calendar, no-one here can tell you what changes would need to be made to the code.

If you make a zip archive of your current calendar template and upload it, someone here may be able to access the code and modify it for you.

You can attach a file to a post via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.

Oh, thank you! What a wonderful resource. Must have been what I did back then, though I don't remember (my file save date says 2015, so that's way too far back for my memory <lol>).

Thanks and done.


(p.s., didn't see a paper clip, but found the "Manage Attachment" option under the "Additional Options" portion of the message edit screen where I uploaded the file.
Reply With Quote
  #4  
Old 02-22-2025, 12:37 PM
batman1 batman1 is offline Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Windows 11 Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Office 2013
Advanced Beginner
 
Join Date: Jan 2025
Posts: 57
batman1 is on a distinguished road
Default

1. In the Calendar module in the Sub CreateNewDoc there is a line
Code:
objActiveRange.Style = rgstrDaysStyle(iCalendarStyle) & iOrientation & iNoPicture
If you don't change anything (just click Next, Finish on the UserForm) then in the above line you have objActiveRange.Style = "Boxes 11" - font.Size = 36, paragraph alignment= Center. For you it should be font.size = 20 and alignment = Left.

2. You can select all the cells of the table (calendar) --> choose STYLE: font.size = 20, paragraph alignment = left.
Reply With Quote
  #5  
Old 02-26-2025, 12:36 PM
Aengus345 Aengus345 is offline Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Windows 10 Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Office 97-2003
Novice
Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars?
 
Join Date: Feb 2024
Posts: 8
Aengus345 is on a distinguished road
Default

I'm stumped. Unlike you guys, I'm a real newbie at this no matter how long I've been modifying vba in Word (I'm just no developer, just a simple power user.)
So perhaps easiest would be to just outline the steps I've done.

I changed the .WIZ extension to .DOC (as an online recommendation to change it to template .DOT just created a mess). (And the "If you don't change anything (just click Next, Finish on the UserForm" to me just meant that if I opened via NEW template, created same issue as changing .WIZ to .DOT, an open Word file that created error message after.) So I went with .DOC.

Opened the .DOC with the .WIZ macros within. Then opened the VBE. I found the full line stated above:
Code:
objActiveRange.Style = rgstrDaysStyle(iCalendarStyle) & iOrientation & iNoPicture


But after that, I got nowhere

I found that objActiveRange.Style line above okay, but the next one:

Code:
objActiveRange.Style = "Boxes 11" - font.Size = 36, paragraph alignment= Center
was nowhere to be found that I know how how to access.

What am I doing wrong, please?

Thank you!


(p.s., 2nd option to just select the cells and do that ... ugh ... what's the point of vba if one can't do it all in one go??!! lol Besides, I started, but when you have 12 calendars to change font and alignment ... again, ugh lol. Thanks, though! Good in a pinch and if it were only one here and there, would do so. But I create themed yearly calendars periodically. Too much additional work. I don't have that kind of time.)
Reply With Quote
  #6  
Old 02-26-2025, 01:37 PM
batman1 batman1 is offline Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Windows 11 Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Office 2013
Advanced Beginner
 
Join Date: Jan 2025
Posts: 57
batman1 is on a distinguished road
Default

Attachment 21416
Quote:
Originally Posted by Aengus345 View Post

Opened the .DOC with the .WIZ macros within. Then opened the VBE. I found the full line stated above:
Code:
objActiveRange.Style = rgstrDaysStyle(iCalendarStyle) & iOrientation & iNoPicture
But after that, I got nowhere

I found that objActiveRange.Style line above okay, but the next one:

Code:
objActiveRange.Style = "Boxes 11" - font.Size = 36, paragraph alignment= Center
was nowhere to be found that I know how how to access.

What am I doing wrong, please?
You misunderstood.
There is a line
Code:
objActiveRange.Style = rgstrDaysStyle(iCalendarStyle) & iOrientation & iNoPicture
If in the UserForm you click Finish or Next --> Next --> Next --> Finish and don't change anything then you have the setting = default = "Boxes & border", Landscape, No ... -->
rgstrDaysStyle(iCalendarStyle) = "Boxes", iOrientation = 1, iNoPicture = 1
Then
objActiveRange.Style = rgstrDaysStyle(iCalendarStyle) & iOrientation & iNoPicture
= "Boxes" & 1 & 1 = "Boxes11"
So objActiveRange has the style "Boxes11"
You can see from the image that
font 36 pt, Bold
ALIGNMENT Centered

You have to change in this WIZ style Boxes11 e.g. like this:
font 24 pt, Bold
ALIGNMENT Left

Include DOC, DOCM instead of WIZ

But since there are so many styles, you have to change them all to suit your needs
Attached Images
File Type: png style.png (13.8 KB, 10 views)
File Type: png wiz.png (154.8 KB, 11 views)
Reply With Quote
  #7  
Old 02-26-2025, 01:52 PM
Italophile Italophile is offline Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Windows 11 Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Office 2021
Expert
 
Join Date: Mar 2022
Posts: 555
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Put simply:
  1. Change the file extension from .wiz to .doc
  2. Open the document
  3. Modify the style definitions to suit your requirements
  4. Save and close the document
  5. Change the file extension back to .wiz
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell size changes when editing/font of column of record numbers suddenly changed colour Johnrh Excel 1 05-21-2023 07:12 PM
Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Modifying footnote numbers Darko_Giac Word 2 03-16-2017 04:06 PM
Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Need help with modifying a replacing font VBA code- similar task but subtle change kissingfrogs2003 Word VBA 3 08-30-2016 11:42 AM
Modifying calendar.wiz for cell alignment and font size of the day numbers in calendars? Cell font and font size teza2k06 Excel 3 02-10-2014 11:09 PM
Change font size of tasks in pane under Calendar ghumdinger Outlook 2 08-16-2011 06:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft