+ Reply to Thread
Results 1 to 11 of 11

Hide/unhide button based on data validations

Hybrid View

  1. #1
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Hide/unhide button based on data validations

    Hello Jazzy Max,

    Can you post your workbook? It will be easier to determine what is happening.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  2. #2
    Registered User
    Join Date
    09-08-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Hide/unhide button based on data validations

    ok here it is.

    I have only uploaded the relevant sheet, is that ok? or you prefer the whole workbook?

    Anyway, when the workbook is opened, the following should happen:

    -A Msgbox should pop up saying: Please enable macros etc..
    -Auto zoom to 80%

    BUT what is happening is Cell C3 is selected for no reason at all! it is totally irrelevant.

    Thanks Leith I really really appreciate your help. This is due in about 3 hours and this is all that I am stuck on.
    Attached Files Attached Files

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Hide/unhide button based on data validations

    Hello Jazzy Max,

    I didn't look at your profile. You are using Excel 2007, which I don't have and neglected to mention. You will have to post a copy in "97-2003" format before I can open it. Even the mods make mistakes.

  4. #4
    Registered User
    Join Date
    09-08-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Hide/unhide button based on data validations

    Not a problem at all

    I have just saved it in 97-2003 mode. A lot of 'loss of functionality' things came up so I am not sure that you will be able to see what I really want to show.

    Here we go..
    Attached Files Attached Files

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Hide/unhide button based on data validations

    Hello Jazzy Max,

    Whatever functionality was lost didn't effect the original problem. I rewrote the Workbook_Open() macro and delete two worksheet event routines that duplicated the open event. Here is the macro which has been added to the attached workbook.
    Private Sub Workbook_Open()
      Sheet5.Activate
      Sheet5.Range("L11").Select
      
      ActiveWindow.Zoom = 80
      ActiveWindow.ScrollRow = 1
      ActiveWindow.ScrollColumn = 1
      Msgbox "Please enable macros before proceeding"
    End Sub
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-08-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Hide/unhide button based on data validations

    Hi Leith,

    Its cool now, I played around a bit tried to read and understand what each line means.

    I didn't have the code in the 'This Workbook' section.

    You have been great, thank you very much for your assistance reps added

+ 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