Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2007, 11:46 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word to Excel

I have lots of word documents that has FormField checkboxes (using the Forms toolbar) in it and I was trying to transfer that value to an excel file to file a report.

My problem is that FormField checkboxes (using the Forms toolbar) doesn't have any bookmark value. How can I get the data from the check boxes using VBA codes.

Please help me...


Simply the best...
 
Old February 23rd, 2007, 12:13 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

If you have used the form field

Try

If .FormFields(CheckBoxName).Result = True
  ' Move it to Exce;
End if

This Should work

or you can use

chkCheckBoxName.Checked = True


Cheers
Shasur


http://www.vbadud.blogspot.com
 
Old March 7th, 2007, 05:18 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the help, I will try this...:)

Simply the best...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Charts to Word Sanjo VB How-To 1 March 31st, 2007 12:07 AM
Excel to word sdowen Excel VBA 2 June 20th, 2005 03:41 AM
Merge to word from excel Kevinsharrison Access VBA 1 April 26th, 2005 07:40 AM
Excel Charts in Word migalley Excel VBA 4 March 5th, 2004 02:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.