Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2015, 04:08 AM
nouki nouki is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2013
Novice
Autofill form in word in combination with VBA
 
Join Date: Oct 2015
Posts: 5
nouki is on a distinguished road
Default Autofill form in word in combination with VBA

Hi !



I guess I need some help with my word document.

I would like to make a document for work. The format will be used so people can subscribe themself for a photoshoot.

There are many options, so they must tick one or more subjects they like.

My problem:
Every photoshoot has another time, example: a babyshoot takes about 3 houres and a marriage shoot takes about 1.5 houres.

I would like to have a textbox where stands automatically witch time they have.
Example: when they activate babyshoot, there must stand 3 houres. But when they take a babyshoot and a marriage shoot, there must stand 4.5 houres.

I have tried the 'if ... then' formule, but that didn't work, and I have no idea what's the right code for VBA.

I have attached the file, because it's a complex document

Hope you guys can help me !
Attached Files
File Type: docx formulier oplossing.docx (22.6 KB, 12 views)
Reply With Quote
  #2  
Old 10-14-2015, 04:22 AM
macropod's Avatar
macropod macropod is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

For a form to be used by others, you should restrict your form to the use of formfields, since:
• they can be made to do calculations without the need for macros; and
• content controls require macro and are unusable on Macs.
Also, instead of using checkbox formfields, if you need to use a choice for calculations, you should consider using dropdown formfields.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-14-2015, 04:59 AM
nouki nouki is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2013
Novice
Autofill form in word in combination with VBA
 
Join Date: Oct 2015
Posts: 5
nouki is on a distinguished road
Default

I'm sorry, I don't understand, is there a difference between formfields? Where can I find the one you mean?

But when I choose for dropdown formfields instead of checkbox formfields, they can't choose multiple shoots..
Reply With Quote
  #4  
Old 10-14-2015, 05:07 AM
macropod's Avatar
macropod macropod is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Your document has content controls, formfields are quite different and are access via the 'Legacy Tools' button in the Controls group where you selected the content controls from.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 10-14-2015, 05:22 AM
nouki nouki is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2013
Novice
Autofill form in word in combination with VBA
 
Join Date: Oct 2015
Posts: 5
nouki is on a distinguished road
Default

Do I have to switch all content controls into formfields or only my checkboxes?
(In my word it's called Active X elements I guess )

There's a content control with an calender, but this is not possible to make it with a formfield, or is it?
Reply With Quote
  #6  
Old 10-14-2015, 05:35 AM
macropod's Avatar
macropod macropod is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

As I have already said, content controls don't work on Macs. Besides which, formfeilds and content controls don't play well together. There isn't a calendar formfield, but you can format them for date input.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 10-14-2015, 05:40 AM
nouki nouki is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2013
Novice
Autofill form in word in combination with VBA
 
Join Date: Oct 2015
Posts: 5
nouki is on a distinguished road
Default

I have changed the checkboxes into Active X elements, see the attachement.

Actually, this is a trial format. The real format will be used by taking of psychodiagnostic instruments with psychiatric people (but I can't upload that format).
So I think that this format will not be used by someone who has a Mac (In Belgium, Mac is quite expensive )

But, I still have to use VBA for this, right?
is it possible with the 'if..then' string, now?
Attached Files
File Type: docx formulier oplossing ENG.docx (36.8 KB, 9 views)
Reply With Quote
  #8  
Old 10-14-2015, 05:45 AM
macropod's Avatar
macropod macropod is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

ActiveX controls don't work on Macs, either...

You can do the lot with formfields & formula fields, with no need for macros, and have a document that works equally well on PCs and Macs.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 10-14-2015, 05:59 AM
nouki nouki is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2013
Novice
Autofill form in word in combination with VBA
 
Join Date: Oct 2015
Posts: 5
nouki is on a distinguished road
Default

After a long search, I have found the legacy tools and I've changed my checkboxes into formfields.

What's next?
Attached Files
File Type: docx formulier oplossing ENG.docx (22.4 KB, 10 views)
Reply With Quote
  #10  
Old 10-14-2015, 01:20 PM
macropod's Avatar
macropod macropod is offline Autofill form in word in combination with VBA Windows 7 64bit Autofill form in word in combination with VBA Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

As I said in a previous reply, if you want the calculations to happen automatically without macros, you need to use dropdowns instead of checkboxes. I also said you shouldn't try to use content controls and formfields in the same document. Try the attached.
Attached Files
File Type: docx formulier oplossing ENG.docx (18.8 KB, 13 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating AutoFill form - AutoFill information depending on a selection. RyanHarper Word 3 06-15-2015 01:01 PM
Autofill form in word in combination with VBA Autofill field on header from text in word Craigof Word VBA 1 04-15-2015 02:28 PM
Autofill form in word in combination with VBA Autofill a form which is contingent on a dropdown selection. biffle0764 Word 2 05-09-2012 12:54 PM
Autofill form in word in combination with VBA tcp-t F3 key combination used in template revans611 Word 1 11-29-2010 11:57 AM
Help with Combination function sanasath Excel 0 12-13-2005 07:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:20 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