+ Reply to Thread
Results 1 to 3 of 3

VBA toolbar-button programming switch on/off

Hybrid View

  1. #1
    Snoopy
    Guest

    VBA toolbar-button programming switch on/off

    Hey guys
    I'm designing this toolbar-button that do some shows/hide-stuff.
    So far, my knowlegde of VBA is so limited, that I have used 2 buttons
    (imagine that!) - 1 for "show" and 1 for "hide".

    I know there is some of You guys out there, smiling and realy enjoying
    Your cigars of wisdom - while considering whether to help me or not
    (You see?
    "Hide" and "Show" again!).
    Somehow I just can feel that an answer from outer VBA-space will turn
    up through the smoke in any minute - and I will be happyly greatful!


    Regards
    Snoopy





  2. #2
    Norman Jones
    Guest

    Re: VBA toolbar-button programming switch on/off

    Hi Snoopy,

    Try something like:

    '=============>>
    Private Sub CommandButton1_Click()
    Columns(1).Hidden = Not Columns(1).Hidden
    End Sub
    '<<=============


    ---
    Regards,
    Norman



    "Snoopy" <blaksnm@jjuc.no> wrote in message
    news:1144222727.015012.217030@u72g2000cwu.googlegroups.com...
    > Hey guys
    > I'm designing this toolbar-button that do some shows/hide-stuff.
    > So far, my knowlegde of VBA is so limited, that I have used 2 buttons
    > (imagine that!) - 1 for "show" and 1 for "hide".
    >
    > I know there is some of You guys out there, smiling and realy enjoying
    > Your cigars of wisdom - while considering whether to help me or not
    > (You see?
    > "Hide" and "Show" again!).
    > Somehow I just can feel that an answer from outer VBA-space will turn
    > up through the smoke in any minute - and I will be happyly greatful!
    >
    >
    > Regards
    > Snoopy
    >
    >
    >
    >




  3. #3
    Snoopy
    Guest

    Re: VBA toolbar-button programming switch on/off

    Thanks

    I think You just solved my problem ))


+ Reply to Thread

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.6.0 RC 1