hiding a worksheet

  • Re: hiding a worksheet


    Hi


    I didnt get your question...hide a worksheet in a worksheet


    You can hide worksheets within a workbook


    Aadarsh

    :angrypc:

  • Re: hiding a worksheet


    hi


    i meant that if there is a worksheet a, b and c
    could i try to hide worksheet b and c in worksheet a?





    ss

  • Re: hiding a worksheet


    You can't hide a worksheet in another worksheet. The simplest way to hide a sheet is from the Format Menu | Sheet | Hide.
    You can change a sheet's Visible Property using VBA, if you are competent with VBA use.

  • Re: hiding a worksheet


    hi roy


    i have a macro that automatic transfers data from sheet a to sheet b
    if i hide worksheet b, when i execute the macro in sheet a, a debug error appears...


    is the problem inherent or the code must be changed to accomodate hiding of sheet?


    thanks,
    stan

  • Re: hiding a worksheet



    hi gazzapoh,
    i think the error appears as the sequence of the code is not proper
    could you post yr code?

    Cheers
    ___________
    Xlite :sheep:
    [st]All you need to learn VBA is an internet connection and Ozgrid.com[/st]

  • Re: hiding a worksheet


    This can be done in this general way:


    Turn screenupdating off,
    Unhide your sheet B
    copy data from sheet A
    paste data to sheet B
    hide your sheet B
    Turn screenupdating on.


    This whole sequence usually occurs so quickly the end user is completely unaware of what is being done.


    Regards,

  • Re: hiding a worksheet


    hi xlite


    this is a code:


    thanks




    stan

  • Re: hiding a worksheet


    hi Stan


    see if the code below is what you're looking for


    HTH

    Cheers
    ___________
    Xlite :sheep:
    [st]All you need to learn VBA is an internet connection and Ozgrid.com[/st]

  • Re: hiding a worksheet


    hi xlite


    the code works fine when the sheet is hidden,
    as more "x" values are entered in the particular column, the code fails as the sheet was hidden, and the rows of data could not be pasted


    user has to unhide the sheet, then the code works
    is there a way to bypass the frequent unhiding process?




    regards
    stan

  • Re: hiding a worksheet


    hi stan,


    sorry abt that, i forgot to add an unhide


    HTH

    Cheers
    ___________
    Xlite :sheep:
    [st]All you need to learn VBA is an internet connection and Ozgrid.com[/st]

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!