+ Reply to Thread
Results 1 to 6 of 6

Drop down menu selection that automatically shifts an entry to another sheet

Hybrid View

gfell153 Drop down menu selection that... 01-24-2018, 12:58 PM
Logit Re: Drop down menu selection... 01-24-2018, 01:26 PM
gfell153 Re: Drop down menu selection... 01-24-2018, 02:44 PM
gfell153 Re: Drop down menu selection... 01-24-2018, 03:34 PM
Logit Re: Drop down menu selection... 01-24-2018, 05:59 PM
gfell153 Re: Drop down menu selection... 01-25-2018, 09:56 AM
  1. #1
    Registered User
    Join Date
    01-24-2018
    Location
    Bloomington, IN
    MS-Off Ver
    Excel 2010
    Posts
    8

    Drop down menu selection that automatically shifts an entry to another sheet

    I am trying to develop a workbook for our business that will help us organize our production and inventory better. We have a family limestone business and every day our quarry superintendent sends over a sheet of production. The sheet contains a block number, dimensions, grade of stone, date it was taken up etc. I have developed a workbook that contains everything we need and in it I have included drop down menus for certain inputs. I was just wondering if there was a way to program it so when you select a certain value in the drop down list it will automatically shift it over to another sheet. For example if a block is shipped to our mill, I can go over to the production sheet and select MILL from my drop down list and it will move it over to another sheet that would contain all of our mill inventory. I'm not sure if this is a function Excel is capable of handling but I thought I would give it a shot. If not, is there another type of program similar to excel that would be able to handle this?

    Thanks for your help,

    Garrett

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Re: Drop down menu selection that automatically shifts an entry to another sheet

    .
    Paste this into a Routine Module :

    Option Explicit
    
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Not Intersect(Target, Range("E1")) Is Nothing Then
            Select Case Range("E1")
                Case "Sheet 2": Macro1
                Case "Sheet 3": Macro2
                Case "Sheet 4": Macro3
            End Select
        End If
    End Sub
    
    Sub Macro1()
        Sheets("Sheet2").Activate
        Sheets("Sheet2").Range("A1").Select
    End Sub
    
    Sub Macro2()
        Sheets("Sheet3").Activate
        Sheets("Sheet3").Range("A1").Select
    End Sub
    
    Sub Macro3()
        Sheets("Sheet4").Activate
        Sheets("Sheet4").Range("A1").Select
    End Sub
    Then you create a page list on your first sheet where it won't interfere with the remainder of your worksheet :

    P
    Q
    R
    1
    Sheet 2
    2
    Sheet 3
    3
    Sheet 4
    4


    Then say you click on cell E1, then on the Data Tab / Data Validation / and change ALLOW drop down to LIST. In the range field, you enter (in this scenario) Q1:Q3


    See attachment.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-24-2018
    Location
    Bloomington, IN
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Drop down menu selection that automatically shifts an entry to another sheet

    Man I think I'm so close but on my sheet in the drop down menu when I select a sheet it doesn't take me there. It just says sheet 2. Here I will attach my Excel file if I can figure out how to
    Last edited by gfell153; 01-24-2018 at 02:50 PM.

  4. #4
    Registered User
    Join Date
    01-24-2018
    Location
    Bloomington, IN
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Drop down menu selection that automatically shifts an entry to another sheet

    Here it is. I am trying to make it so the location column controls which sheet it goes to.
    Attached Files Attached Files
    Last edited by gfell153; 01-24-2018 at 03:39 PM.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Re: Drop down menu selection that automatically shifts an entry to another sheet

    Two small issues (corrected in attached):

    The macro code was still referencing cell E2 instead of I2.

    The spelling of the sheet tab names was incorrect. Always make certain the spelling in the code is identical to whatever you are referencing. In this case
    one of the tabs was Sheet4 ... instead of Sheet 4 (notice space between the word Sheet and the number 4.

    And my apologies ... my instructions said to paste into a Routine Module. My mind was wandering ... I meant paste into the Sheet Level Module.
    Attached Files Attached Files
    Last edited by Logit; 01-24-2018 at 06:14 PM.

  6. #6
    Registered User
    Join Date
    01-24-2018
    Location
    Bloomington, IN
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Drop down menu selection that automatically shifts an entry to another sheet

    Okay so is there a way to make all the information in that row transfer to the sheet I select?

+ 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: 3
    Last Post: 07-31-2013, 11:53 AM
  2. Drop down menu in data entry form
    By yoosed in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-15-2013, 10:25 AM
  3. Replies: 1
    Last Post: 03-27-2013, 07:04 AM
  4. Replies: 1
    Last Post: 02-07-2013, 11:03 AM
  5. Replies: 3
    Last Post: 01-31-2013, 06:22 PM
  6. Copy/Paste Data from Row to Another Sheet if Selection Made from Drop down Menu
    By bufb45 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2012, 12:47 PM
  7. Drop-Down Menu Selection
    By moncureww in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2008, 01:15 PM
  8. drop down menu with calendar entry
    By Pip in forum Excel General
    Replies: 4
    Last Post: 03-15-2005, 04:06 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