+ Reply to Thread
Results 1 to 2 of 2

2 Things, CommandBars & Windows

  1. #1
    Registered User
    Join Date
    07-28-2005
    Posts
    15

    2 Things, CommandBars & Windows

    Hello, I've got a problem, well, 2 problems or things I don't know how to do, but I think them are rather simple.

    One of them, I've got one WorkBook, and to do some things I create new Windows of this WorkBook, and so, on the Windows OS taskbar appear as many Excel instances as new windows I create like Workbook:1, Workbook:2, and so on.
    I need to have only one instance on the TaskBar, even I have more than one window of the WorbBook open. I think this should be posible.
    Any help on this?

    The second thing I am looking for is an automatic way of formating the Command Bars of Excel, with some macros with the purpose of using the WorkBook.
    I have looked to some literature and searched the web, and now I know how to create a new CommandBar if it does not exist, and also I know how to add to it buttons, but the problem is that I don't know which is the VBA code to assign a macro to each button.

    Well, those are the things that I need to deliver the app in the most fashioned way I am able to do VBA nowaday to my client. Any help would be very appreciated, thanks!!

  2. #2
    Tom Ogilvy
    Guest

    Re: 2 Things, CommandBars & Windows

    Tools=>Options=>View Tab, in the show section, uncheck Windows in taskbar


    use the OnAction property of the command bar button.

    mybutton.OnAction = "mymacro"

    --
    Regards,
    Tom Ogilvy


    "baldomero" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hello, I've got a problem, well, 2 problems or things I don't know how
    > to do, but I think them are rather simple.
    >
    > One of them, I've got one WorkBook, and to do some things I create new
    > Windows of this WorkBook, and so, on the Windows OS taskbar appear as
    > many Excel instances as new windows I create like Workbook:1,
    > Workbook:2, and so on.
    > I need to have only one instance on the TaskBar, even I have more than
    > one window of the WorbBook open. I think this should be posible.
    > Any help on this?
    >
    > The second thing I am looking for is an automatic way of formating the
    > Command Bars of Excel, with some macros with the purpose of using the
    > WorkBook.
    > I have looked to some literature and searched the web, and now I know
    > how to create a new CommandBar if it does not exist, and also I know
    > how to add to it buttons, but the problem is that I don't know which is
    > the VBA code to assign a macro to each button.
    >
    > Well, those are the things that I need to deliver the app in the most
    > fashioned way I am able to do VBA nowaday to my client. Any help would
    > be very appreciated, thanks!!
    >
    >
    > --
    > baldomero
    > ------------------------------------------------------------------------
    > baldomero's Profile:

    http://www.excelforum.com/member.php...o&userid=25680
    > View this thread: http://www.excelforum.com/showthread...hreadid=465880
    >




+ 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