dcsimg
Results 1 to 7 of 7

Thread: Search and Conditional Formatting in Excel Query

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2018
    Posts
    3

    Search and Conditional Formatting in Excel Query

    I am trying to create an Excel document which has a list of site names and passwords for these sites names hidden and protected.

    The basic doc has been created, however, does anyone know how I could go about writing a macro from a command button, which brings up a search box which will unhide all site names which contains the entered string?

    For example, when "School" is entered, all entries which include the letters will unhide, showing their contents, but the rest will stay hidden.


    I'm very much a beginner in VB.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    23,819

    Re: Search and Conditional Formatting in Excel Query

    you should be able to use advanced filtering to do this, if you need some more help, post a sample workbook, zip first
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    New Member
    Join Date
    Jun 2018
    Location
    Europe
    Posts
    6

    Re: Search and Conditional Formatting in Excel Query

    Quote Originally Posted by JamesNickels View Post
    I am trying to create an Excel document which has a list of site names and passwords for these sites names hidden and protected.

    The basic doc has been created, however, does anyone know how I could go about writing a macro from a command button, which brings up a search box which will unhide all site names which contains the entered string?

    For example, when "School" is entered, all entries which include the letters will unhide, showing their contents, but the rest will stay hidden.


    I'm very much a beginner in VB.
    I was just wondering if it's really that safe to do it like that if you can just make them unhide entering random words?

  4. #4
    New Member
    Join Date
    Jun 2018
    Location
    Europe
    Posts
    6

    Re: Search and Conditional Formatting in Excel Query

    Quote Originally Posted by JamesNickels View Post
    I am trying to create an Excel document which has a list of site names and passwords for these sites names hidden and protected.

    The basic doc has been created, however, does anyone know how I could go about writing a macro from a command button, which brings up a search box which will unhide all site names which contains the entered string?

    For example, when "School" is entered, all entries which include the letters will unhide, showing their contents, but the rest will stay hidden.


    I'm very much a beginner in VB.
    I was just wondering if it's really that safe to do it like that if you can just make them unhide entering random words?

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2018
    Posts
    3

    Re: Search and Conditional Formatting in Excel Query

    Quote Originally Posted by germansaram View Post
    I was just wondering if it's really that safe to do it like that if you can just make them unhide entering random words?
    Maybe, I am unsure of the best way to approach it.

  6. #6

    Thread Starter
    New Member
    Join Date
    Oct 2018
    Posts
    3

    Re: Search and Conditional Formatting in Excel Query

    Quote Originally Posted by westconn1 View Post
    you should be able to use advanced filtering to do this, if you need some more help, post a sample workbook, zip first
    Here's the workbook. I've had to remove the details for security purposes.

    Remote Support Chart.zip

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    23,819

    Re: Search and Conditional Formatting in Excel Query

    I've had to remove the details for security purposes.
    of course, hence the word sample, but some dummy or non sensitive data is needed for testing
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width