+ Reply to Thread
Results 1 to 9 of 9

goto sheet and email template question

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    goto sheet and email template question

    Good morning,

    I have been trying to solve what seems to be a very basic problem to no avail. I have a droplist of names on multiple sheets (all in cell B3) so I can enter data on a sheet then select the next name and go to that sheet etc. To prevent changing code when a new name is added, I have the names associated to a number by vlookup so the sheet selected is based on the numeric value from the vlookup. The problem is if I select 'Bob (numeric value 6) and go to sheet6, when I select the next person, say 'Larry (numeric 8), it will go to sheet 8 but when I try to enter any data it automatically jumps me back to sheet 6 since the first droplist sheet still has the numeric value on 6. Is there a way to stay on a particular sheet until a new value is selected from the droplist? Additionally I'm trying to find a way that I can click a cell which will email a range of cell data from a template to a selected person from the list using outlook however the template values change week to week.
    Last edited by Velmortis; 07-01-2013 at 06:01 PM.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: goto sheet and email template question

    Hi and welcome to the forum,

    could you please post at least your code, better a sample workbook, without it we can only guess how your drop down list behave.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    06-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: goto sheet and email template question

    test run.xlsm

    Sorry, I should have attached it from the start.

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: goto sheet and email template question

    Hi

    try this file: test run.xlsm, ideally the code in the ThisWorkbook module will handle all dropdown lists in the file

    contains:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: goto sheet and email template question

    TehneXus your a genius! It worked perfectly thank you. (saved me a lot of grief). Any idea towards my second question with regards to sending an excel template through outlook? Example would be attached. Depending on which week I wanted to send from where you see the 'email:' in the AC column. I basically wanted to simply 'click' on the cell and have outlook open an email to send to the specific person with a preset range of data in the attached Book1 for the respected week that I would click on. If you could assist with how to create that would be appreciated.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: goto sheet and email template question

    Hi,

    check the code in ThisWorkbook module in: test run.xlsm

    For more help I need to know exactly where to take values/mail address from

  7. #7
    Registered User
    Join Date
    06-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: goto sheet and email template question

    Hi TehneXus, this is essentially what I was looking for. The values to be taken would be from columns G,H,I,J,K,L,M,N,O,P,Q,R to the respective Row and the mail addresses would be under the names sheet in column C where a different email address would be per line to the respective name.

  8. #8
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: goto sheet and email template question


  9. #9
    Registered User
    Join Date
    06-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: goto sheet and email template question

    TehneXus, you are by far a lifesaver. This is exactly what I was needing. I appreciate your time and effort.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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