+ Reply to Thread
Results 1 to 3 of 3

VBA That looks for sheet name in a file and activates it

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2010
    Posts
    92

    VBA That looks for sheet name in a file and activates it

    Hi guys!

    I have written some code that should allow the user to search a certain sheet that they are trying to find in a workbook that the macro opens. I am encountering one problem however, it does not work everytime I initiate it!

    I tried it with inputting the value "F4" in the inputbox and it does go to the Using F4 sheet. When I try to type in statistics or sumifs and it tries to find the sheets called "Statistics" or "Sumifs & Countifs" it does not give back the sheet at all.

    This is my code:
    Please Login or Register  to view this content.
    I hope I have written everything correctly and easy to understand. Please help!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA That looks for sheet name in a file and activates it

    The current code is case sensitive. This will make it case insensitive.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-14-2017
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2010
    Posts
    92

    Re: VBA That looks for sheet name in a file and activates it

    Wow perfect! This is exactly what I need

+ 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. Code for closing the file if its already open before MACRO activates
    By NikhilDixit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2017, 10:21 AM
  2. [SOLVED] Macro that activates sheet upon opening of a file
    By Jstns in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-28-2017, 11:30 AM
  3. [SOLVED] Application.Sumif funciton activates the other sheet tab
    By ImranBhatti in forum Excel General
    Replies: 3
    Last Post: 01-18-2017, 07:07 AM
  4. [SOLVED] How to change Combo box1 (image file select) that activates a reading in textbox2
    By bralew in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2016, 03:49 AM
  5. How to create a macro that 'activates' a filter on another sheet.
    By liamfrancis2013 in forum Excel General
    Replies: 6
    Last Post: 05-11-2016, 10:55 AM
  6. [SOLVED] Macro activates in wrong sheet
    By SoothSailor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2015, 12:17 PM
  7. Automatic updating of cells when sheet activates
    By popperm1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 12:54 PM

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