![]() |
#1
|
|||
|
|||
![]()
Hi
I'm really struggling with this, code is not my thing any help or pointers really appreciated ![]() I have a word 2010 document. I have a list of documents each with an associated checkbox. If a checkbox is checked I want to open the associated document, which is an excel file, when I click on a command button. So i have an Active X checkbox with this code which opens the excel file as soon as i check it which is not quite what i want to do but i seem to keep going in circles (if possible i would like to use ContentControl Checkboxes but i cant even get the code I've got to work with them)...... Code:
Private Sub CheckBox1_Click() Dim oExcel As Excel.Application Dim oWB As Workbook Set oExcel = New Excel.Application Set oWB = oExcel.Workbooks.Open("C:\Temp\MyDoc.xls") oExcel.Visible = True End Sub |
Tags |
checkbox, content control, vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
nolanthomas32 | Word VBA | 4 | 09-19-2017 06:25 AM |
![]() |
Deirdre Kelly | Word VBA | 23 | 09-07-2017 02:51 PM |
![]() |
wlcdo2 | Word VBA | 3 | 01-05-2017 05:52 PM |
![]() |
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |
![]() |
creative cathy | Word Tables | 13 | 10-07-2012 08:52 PM |