Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 588141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:17:14+00:00 2026-05-13T15:17:14+00:00

First of all I’m going to state right out that I’ve never worked with

  • 0

First of all I’m going to state right out that I’ve never worked with VB in the context of coding macros before – my skills lie in other areas (PHP, Javascript, getting there with C#, etc). However, I’ve been asked by a colleague to lock down a document so that the user cannot change font faces, sizes or colours but does still have access to bold, italic, underline etc.

I started out by protecting the document and restricting formatting but this is far too restrictive – effectively only allowing the user to apply premade styles – which is going to be unintuitive for the users who are not used to working with styles.

So I’ve resorted to trying to writing a macro to do the job, but unfortunately I’m at the really pointy end of the learning curve and I honestly don’t know where to start.

You’re going to laugh at me but so far this is all I have in my ThisDocument.

Private Sub Document_Open()

End Sub

Ermmmm… help!

Cheers

Iain

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:17:15+00:00Added an answer on May 13, 2026 at 3:17 pm

    Iain, this is a pretty common need. Here’s a good information page on what will get you started: Using VBA to Control Built-In Commands in the 2007 Office System

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, I want to make something clear before I get yelled at:
First of all, let me say that I am not a professional coder -
First of all I want so say, that I'm a very beginner in developing
First of all I have to admit that these are very basic and primitive
First of all, I'm using ARC. If I have a class that, for example,
First of all, pardon my hacky code, I'm just trying to try this out
First of all I have seen that there are many questions about unrecognized selector
first of all, I'm not good with jQuery and coding. I'm trying to achieve
I have 3 cards. at first all cards move to the right, then after
First of all, this isn't for a keylogger, it's for an input in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.