Excel CheckBox Into Word Paragraph.

AxelD

New Member
Joined
May 12, 2016
Messages
2
Hi all,

I've recently generated an excel table for my company, showing every kind of assessment we do (followed by an ActiveX checkbox).
The initial aim was to select any boxes you want, and generate a price at the end.

Easy.
Private Sub CheckBox6_Click()
temp = "23"
temp2 = "H23"
If (CheckBox6 = True) Then
Range(temp2) = Range("_C1_").Value
Else: Range(temp2) = 0
End If
End Sub
Now what I want to do is to attach a Word paragraph (describing the task) to every box, so that whenever you are done checking your boxes it generates, on a pre-template Word document, all the paragraphes (using macros).

This in order to fast generate Sales Quote of course.

Here is an image (with fake Assessments of course).
5kjg1bjcx
View image: excel


Thanks a lot for the answers, I will keep it updated and send the final macro if needed.

AxelD
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I finally got the answer.
I put this formula for every checkbox, linking it to another spreadsheet ("Feuil1"), opening a word and pasting the text inside.

Private Sub Grizzly_Bear_Click()
temp = "21"
temp2 = "H21"
If (Grizzly_Bear = True) Then
Range(temp2) = Range("_A3_").Value
Else: Range(temp2) = 0
End If
End Sub


Followed by:

Private Sub CommandButton1_Click()
Dim wDoc As Word.Document
Set wApp = CreateObject("word.application")
wApp.Visible = True
Set wDoc = wApp.Documents.Add


If (Yield_Review = True) Then wDoc.Content.InsertAfter Sheets("Feuil1").Range("C8")
End If

End Sub



Now my big deal is the following:

In total I have 3 spreadsheets quit similare, and a 4th one with data text boxes.
The two first checkboxes "Bunny Rabbits" and "Unicorns" are depending on my two other first spreadshets (called "Bunny Rabbits" and "Unicorn" as well).

The thing is, I cannot figure out how to use my previous results inside a new spreadsheet, depending on the "True/False" checkbox.
If If put the same macro but in the 3rd sheet, Excel will just pass over it without looking it.

Help ?
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top