+ Reply to Thread
Results 1 to 4 of 4

Perform specific action if workbook is opened under special circumstances

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Perform specific action if workbook is opened under special circumstances

    My VBA program allows a user to submit a ticket. The ticket gets e-mailed to me to where I can approve it.

    Right now, if I want to approve a request a user submits, I have to open the VBA program, type in their ticket number, press search, and then approve it.

    How can I accomplish this with a link directly from the e-mail, that would auto approve it?

    I imagine I could build in a special start event in the macro that when X criteria is true, load Y ticket number and approve it, but how would I do this?

    Basically I need some way in which to pass on both the ticket number and some kind of boolean that says that i'm entering the workbook for a quick approval, to the program when I open it from my e-mail.

    I wrote the original program so I have complete control over it's code, as well as the link and e-mail that gets sent to me, just not sure how to convert it to one click.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,953

    Re: Perform specific action if workbook is opened under special circumstances

    I hope there's some money changing hands here
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Perform specific action if workbook is opened under special circumstances

    Quote Originally Posted by TMS View Post
    I hope there's some money changing hands here
    What do you mean?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,953

    Re: Perform specific action if workbook is opened under special circumstances

    Sorry, my previous answer was intended for another thread. I had been looking at your thread and obviously posted here instead of elsewhere.

    It's difficult to respond to your question based on the information provided. What does your code do as it stands? What do you want it to do differently?

    I think you need to share the code and, ideally, a sample workbook.

    This:
    How can I accomplish this with a link directly from the e-mail, that would auto approve it?
    sounds like you'd need an Outlook VBA Macro.

    Regards, TMS

+ 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. Force Paste Special Value under certain circumstances
    By stevetothink in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 02:23 PM
  2. [SOLVED] when excel workbook is opened it always opens specific sheet
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2013, 07:15 AM
  3. [SOLVED] Perform action on select sheets upon opening workbook
    By newrui in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2012, 03:03 PM
  4. [SOLVED] Carry Rows Over to New Sheet (Under Only Specific Circumstances)
    By smartmika in forum Excel General
    Replies: 7
    Last Post: 04-08-2012, 01:43 PM
  5. load event when specific workbook is opened
    By itsthebike in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2006, 12:25 PM
  6. Perform action on every workbook in a directory
    By Btibert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2006, 03:33 PM
  7. Start with a specific worksheet when a Workbook is opened
    By Joe@excel in forum Excel General
    Replies: 2
    Last Post: 11-24-2005, 04:48 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