![]() |
|
#1
|
|||
|
|||
|
Hey all,
I have code that shows/hides a textbox. The problem that i am having is that everytime i open the document with it in the textbox number changes randomly, with then causes the macro to crass as the textbox cant be found. this is my code. Code:
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
ActiveDocument.Shapes("AutoShape 57").Visible = True
Else
ActiveDocument.Shapes("AutoShape 57").Visible = False
End If
End Sub
is there any reason why this happens? Thanks |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to center text vertically in rectangle/ textbox | alexcalgary | Word | 3 | 11-26-2021 10:57 AM |
| Textbox Template | t0m46 | Word | 0 | 09-07-2010 03:38 AM |
| Creating Chart using VB textbox value | shyler82 | Word VBA | 0 | 03-12-2010 06:56 PM |
Textbox & Edit Paste text
|
MikeWM | Word VBA | 1 | 08-20-2009 06:21 PM |
| Open DOCX in Word 2007 & Open DOC in Word 2003 | wilde_37 | Office | 0 | 02-03-2009 12:37 AM |