+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Unhappy Select a Textbox and hide

    Hey all,

    I am new to Word programming but have done a bit in Excel. I want to know how to select a textbox. not a form control or activeX textbox a standard word textbox. in excel i would simply use textbox1.select but this doesnt seam to work in Word as i cant find out any properties on the textbox.

    also once you have selected the textbox can you hide and show it? again in excel i would use textbox1.visible = false/true but i cant get it to work

    can this be done in word?

    Thanks
    Last edited by t0m46; 09-10-2010 at 12:03 PM.

  2. #2
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Re: Select a Textbox and hide

    Hey all,

    Have found the solution. Word saves them as a Shape, not a Text Box.

    This is the code I have used.

    Code:
    ActiveDocument.Shapes("AutoShape 2").Visible = msoTrue
    the problem I am still finiding though is that everytime I reopen Word the Shape Number Changes. Dont know why, is Annoying.

    Have decided to do it in Excel now anyway, its better!!

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0