Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2015, 01:57 PM
brians34 brians34 is offline Was hoping to use a Macro on the attached form, but... Windows 7 64bit Was hoping to use a Macro on the attached form, but... Office 2010 64bit
Novice
Was hoping to use a Macro on the attached form, but...
 
Join Date: Sep 2015
Posts: 2
brians34 is on a distinguished road
Default Was hoping to use a Macro on the attached form, but...

When we get a new employee in our laboratory, their supervisor has to go through computer training with them.



We have 8 different areas in the lab and the previous creator of the training forms made 8 different forms. This was ok at the time, but when an update had to be made, it had to be made to all the forms.

What I did was take all the forms and put all the requirements from them all and incorporated into one form. (See Attached)

My plan was to then create a macro for each area that would "gray out" areas that didn't pertain to a certain section and check the N/A box.

Apparently I can't create a Macro in this way because when I start the record, I can't check any boxes or highlight text.

Is there any way you can think of that I can take all 8 of these forms and create a single form that I can create an autofill on some of the boxes depending on which area of the lab the new employee would be working?
Attached Files
File Type: docx Laboratory Staff Computer Training Documentation.docx (78.3 KB, 11 views)
Reply With Quote
  #2  
Old 09-14-2015, 06:29 PM
Charles Kenyon Charles Kenyon is offline Was hoping to use a Macro on the attached form, but... Windows 8 Was hoping to use a Macro on the attached form, but... Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Take a look at Create a Simple Userform. That, combined with storing your variable text as AutoText should do what you want. Note, in order to have macros, or a userform in a template, it must be stored as a .dotm.
Reply With Quote
  #3  
Old 09-14-2015, 07:33 PM
Guessed's Avatar
Guessed Guessed is offline Was hoping to use a Macro on the attached form, but... Windows 7 32bit Was hoping to use a Macro on the attached form, but... Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I wouldn't be using a userform for this (although you could if you wanted).

If you want to 'grey out' a section you could do this by:
Bookmark the section you want to grey
Create a character style that has the grey attribute you want to apply
Create a macro that applies this character style to the bookmarked range
Add a macro to the ThisDocument module of the template to check the status of a CC when you exit it. This macro could be used to trigger the character style macro.

This is not something that can be recorded although elements of it can be.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #4  
Old 09-15-2015, 11:56 AM
brians34 brians34 is offline Was hoping to use a Macro on the attached form, but... Windows 7 64bit Was hoping to use a Macro on the attached form, but... Office 2010 64bit
Novice
Was hoping to use a Macro on the attached form, but...
 
Join Date: Sep 2015
Posts: 2
brians34 is on a distinguished road
Default

Thanks for the replies.

I may just have to leave this as 8 separate forms.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hoping to leave Evernote required_username OneNote 0 07-08-2015 05:49 AM
Macro to keep formatted form fields after mail merge or replace text with formatted form fields jer85 Word VBA 2 04-05-2015 10:00 PM
Was hoping to use a Macro on the attached form, but... Running a Macro in a protected form yessmarie Word VBA 1 05-25-2012 12:04 AM
Do I need a Form or a Macro?? Keith24249 Excel 0 08-23-2010 06:23 AM
Macro to determine attached template zippyaus Word VBA 0 03-02-2010 02:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:25 PM.


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