+ Reply to Thread
Results 1 to 5 of 5

VBA Problem : IF OR Statement not displaying correct

  1. #1
    Registered User
    Join Date
    08-22-2022
    Location
    Kennesaw,Georgia
    MS-Off Ver
    365
    Posts
    3

    VBA Problem : IF OR Statement not displaying correct

    This is probably a stupid question but below is a VBA string the goal is to hide sheets and data if a certain statement is true or false. The issue is there are three "options" on the sheet (Yes Conventional, No, and Yes Engineered). If either yes statement is true it should display certain data that it is only hiding if the third option is true. I know you may need more context so please just let me know! Any help or theory is greatly appreciated!



    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by zachcone; 08-22-2022 at 10:46 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA Problem : IF OR Statement not displaying correct

    Hi and welcome.

    First off, to appease the forum gods (the moderators) you'll need to go back and edit your original post to include code tags. Edit the post, highlight the code section, click the # icon above your message then save.

    Might be worth adding a sample workbook too (desensitized if necessary) as it's often easier to help when we can see the issue in context.

    Sounds like it will be a quick and easy fix though.

    BSB

  3. #3
    Registered User
    Join Date
    08-22-2022
    Location
    Kennesaw,Georgia
    MS-Off Ver
    365
    Posts
    3

    Re: VBA Problem : IF OR Statement not displaying correct

    Added Thank you!

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA Problem : IF OR Statement not displaying correct

    Could you explain what you need it to do? At the moment I have no idea what's not working with what you have.

    BSB

  5. #5
    Registered User
    Join Date
    08-22-2022
    Location
    Kennesaw,Georgia
    MS-Off Ver
    365
    Posts
    3

    Re: VBA Problem : IF OR Statement not displaying correct

    If basement / crawl is yes conventional it needs to show first floor joists, basement walls, and basement stairs. If it is yes engineered it needs to show only basement walls and basement stairs but not first floor joists.

    Some how the second floor needs the same thing but is working perfectly so that doesnt have to be fixed!

    sorry for the confusion! Thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 01-13-2022, 12:48 PM
  2. [SOLVED] One chart of many not displaying the correct data
    By Dragondude in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 05-23-2019, 08:32 PM
  3. [SOLVED] IF with ISNUMBER not displaying correct result
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-06-2015, 07:23 AM
  4. [SOLVED] Displaying message box on correct entry as well but it should not
    By excel_126 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2014, 02:46 PM
  5. Replies: 2
    Last Post: 07-30-2012, 05:26 AM
  6. [SOLVED] Chart not displaying correct percentage
    By avidcat in forum Excel General
    Replies: 2
    Last Post: 04-22-2012, 12:24 PM
  7. Problem displaying correct data.
    By VinceValdez12 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-11-2007, 04:15 PM

Tags for this Thread

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