Results 1 to 6 of 6

Thread: hide a command button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    65
    I want to put a command button on a word doc - on click - print out the doc.
    Trouble is the button must not be on the hard copy.
    Sounds easy dunnit -- yeah right!!
    Try it and let me know

  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    In the click event, set the Visible property of command button to false, print the doc, then set the Visible property back to true.
    "It's cold gin time again ..."

    Check out my website here.

  3. #3

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    65
    Replies from an 'addicted member' and a 'guru' !!

    I thought you guys only tackled tough stuff.

    Unless I'm mistaken, a command button on a word doc doesn't have a visible property.

    Now I do need a guru.

    Thanks

  5. #5
    Addicted Member
    Join Date
    Feb 2000
    Location
    CWMBRAN,WALES,UK
    Posts
    146
    Try this

    With CommandButton1
    .Width = 0
    .Height = 0
    .BackColor = vbWhite
    End With

    Its gone

    GRAHAM

    [Edited by GRAHAM on 06-25-2000 at 06:31 PM]

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well, Gurus must have right to post to easy things too! Yes and there's 1 minute between Martinliss and BruceG, so that explains that. I've never done programming in word either but i'm surprised that there isn't a visible property
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

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



Click Here to Expand Forum to Full Width