+ Reply to Thread
Results 1 to 4 of 4

Quick activate sheet programming question

  1. #1
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Dallas, Texas
    MS-Off Ver
    O365 with latest Excel
    Posts
    107

    Quick activate sheet programming question

    I have the following macro set to verify if a user has selected "Yes" in five different cells on the Sheet named "Home". It checks each and if any are not equal to "Yes" it returns the message "Nope". It then takes the user back to the Home sheet so they can enter the data required.

    Please Login or Register  to view this content.
    I don't know how to allow the user to go to any selected sheet other than the one I specify in the final Else: statement. I want them to go to whichever sheet they originally selected if they have entered all the required data.

    I'm sure it's some cool thing like Sheets("whatevertheuserjustclicked").Select...but I don't know! Thanks!

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Quick activate sheet programming question

    Does this work?
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Dallas, Texas
    MS-Off Ver
    O365 with latest Excel
    Posts
    107

    Re: Quick activate sheet programming question

    Yes - Perfectly!!!!

    Thanks so much!

  4. #4
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Quick activate sheet programming question

    You are welcome. Thanks for the rep too.

+ 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 to Activate a sheet 1 [IF] Userform box is "X" if not Activate Sheet 2
    By Invicta084 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-07-2014, 08:50 AM
  2. [SOLVED] Quick question about automatic row deletion (should be very quick and easy!!)
    By poptart141 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-09-2013, 12:56 PM
  3. [SOLVED] Worksheet Activate when user selects sheet NOT when sheet is created from a template sheet
    By y0rk1e72 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2012, 02:47 PM
  4. Replies: 3
    Last Post: 07-21-2011, 03:15 AM
  5. Active sheet / cell programming question
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-26-2008, 05:28 PM
  6. Excel 2007: Programming the "Quick Access Toolbar"
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2008, 10:04 AM
  7. Quick Question QUick Answer
    By ccraig61 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2006, 09:34 PM
  8. Quick question - quick answer about assigning shortcut keys
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2005, 06:05 AM

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