+ Reply to Thread
Results 1 to 4 of 4

Enable/Disable multitab pages based on matrix

  1. #1
    Registered User
    Join Date
    05-05-2010
    Location
    Maidenhead, England
    MS-Off Ver
    Excel 2007
    Posts
    39

    Enable/Disable multitab pages based on matrix

    Hi all,

    I have a userform which pops up when the user clicks on a certain cell. The userform has a multipage with 13 pages, each of which has a different vechicle type (eg Bulk Tipper, Chipliner, Container etc)

    Now depending which material type (Compost, Green waste, Food waste etc) is selected, I need to disable/enable pages based on a matrix. Currently the matrix is formatted as vehicle type in the column, and material type along the top, with an 'x' in the cell if that vehicle can carry that material.

    What I need to do is depending on which material type is selected on that row (ActiveCell.Offset(0, -2).Value), I need the form to enable or disable the pages which have the name of the vehicle.

    Can anyone point me in the right direction please?

    Thanks a lot in advance!
    Paul


    edit: have uploaded the file. hopefully it will make more sense now!
    Attached Files Attached Files
    Last edited by A[L]C; 08-26-2011 at 07:21 AM.

  2. #2
    Registered User
    Join Date
    05-05-2010
    Location
    Maidenhead, England
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Enable/Disable multitab pages based on matrix

    Hi all,

    Ok, so Im having a go at this. Unfortunately the For each part of my code is not working. Could someone give me a pointer please/

    Please Login or Register  to view this content.
    Last edited by A[L]C; 08-26-2011 at 10:29 AM.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Enable/Disable multitab pages based on matrix

    Please Login or Register  to view this content.
    Last edited by snb; 08-26-2011 at 11:42 AM.



  4. #4
    Registered User
    Join Date
    05-05-2010
    Location
    Maidenhead, England
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Enable/Disable multitab pages based on matrix

    Ok looks like Ive cracked it.

    Please Login or Register  to view this content.
    Nasty looking code though!

+ 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