Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Insert Worksheet problem (Excel 2003)

    Hi

    I used this code in a workbook, the workbook has been removed from my PC, and now I can't insert a worksheet in any workbook. Any Ideas please <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

    Application.CommandBars.FindControl(ID:=852).Enabl ed = False
    Application.CommandBars.FindControl(ID:=945).Enabl ed = False

    Many thanks
    Braddy
    If you are a fool at forty, you will always be a fool

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Insert Worksheet problem (Excel 2003)

    Use the same code but now with True instead of False <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    You can enter each of the lines in the Immediate window, position the insertion point in the line then press Enter to execute it.

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Insert Worksheet problem (Excel 2003)

    Hi Hans

    Thanks for the prompt reply.

    I see you smiling, how come I had to do this, I'm sure I only entered the code into a workhseet module. <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

    Braddy
    If you are a fool at forty, you will always be a fool

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Insert Worksheet problem (Excel 2003)

    You must have run the code at some time...

  5. #5
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Insert Worksheet problem (Excel 2003)

    Hi Hans

    I think I'm getting to old for all this. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Thanks again.
    Braddy
    If you are a fool at forty, you will always be a fool

Posting Permissions

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