Closed Thread
Results 1 to 5 of 5

CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals

  1. #1
    Arturo
    Guest

    CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals

    Private Sub Workbook_Open()
    CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
    End Sub

    Object variable or With Block not set
    Run-time error ‘91’

    Perplexed why this line works fine in an old project but not here. Correct
    object library is checked - looking into KB...

    Thanks,
    Arturo

  2. #2
    Ron de Bruin
    Guest

    Re: CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals

    Do you use a English version ?

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Arturo" <[email protected]> wrote in message news:[email protected]...
    > Private Sub Workbook_Open()
    > CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
    > End Sub
    >
    > Object variable or With Block not set
    > Run-time error '91'
    >
    > Perplexed why this line works fine in an old project but not here. Correct
    > object library is checked - looking into KB...
    >
    > Thanks,
    > Arturo




  3. #3
    Arturo
    Guest

    Re: CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled =

    Yes
    2003 SP1

    "Ron de Bruin" wrote:

    > Do you use a English version ?
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    >
    > "Arturo" <[email protected]> wrote in message news:[email protected]...
    > > Private Sub Workbook_Open()
    > > CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
    > > End Sub
    > >
    > > Object variable or With Block not set
    > > Run-time error '91'
    > >
    > > Perplexed why this line works fine in an old project but not here. Correct
    > > object library is checked - looking into KB...
    > >
    > > Thanks,
    > > Arturo

    >
    >
    >


  4. #4
    Ron de Bruin
    Guest

    Re: CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled =

    Use

    Application.CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False



    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Arturo" <[email protected]> wrote in message news:[email protected]...
    > Yes
    > 2003 SP1
    >
    > "Ron de Bruin" wrote:
    >
    >> Do you use a English version ?
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >>
    >> "Arturo" <[email protected]> wrote in message news:[email protected]...
    >> > Private Sub Workbook_Open()
    >> > CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = False
    >> > End Sub
    >> >
    >> > Object variable or With Block not set
    >> > Run-time error '91'
    >> >
    >> > Perplexed why this line works fine in an old project but not here. Correct
    >> > object library is checked - looking into KB...
    >> >
    >> > Thanks,
    >> > Arturo

    >>
    >>
    >>




  5. #5
    Registered User
    Join Date
    10-20-2014
    Location
    Ahmedabad, Gujarat, INDIA
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals

    Nice I like it.

Closed 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