Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2010, 05:46 AM
t0m46 t0m46 is offline Textbox Number changes when I open Word Windows 7 Textbox Number changes when I open Word Office 2007
Novice
Textbox Number changes when I open Word
 
Join Date: Sep 2010
Posts: 2
t0m46 is on a distinguished road
Exclamation Textbox Number changes when I open Word

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
the Autoshape 57 keeps changing randomly every time it opens.

is there any reason why this happens?

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes


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 Number changes when I open Word 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

Other Forums: Access Forums

All times are GMT -7. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft