+ Reply to Thread
Results 1 to 50 of 50

Code for Experiments

  1. #1
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    Code for Experiments

    trying to set up some specific code for lab experiments using excel and VBA.

    sample is provided.

    thanks


    '==============
    I want to set-up labs on spreadsheets, that force saves upon completion and send those saves to a specific address (say my email address: or better yet, a specific folder at my work.
    I have attached a sample of what it is I am trying to do.
    I have an Excel file, which would contain 3 worksheets:
    Any sheet that is protected by password, the password is 123
    Worksheet 1 is just instructions and would be made available at all times, but would be protected using a password.
    Worksheet 2 would be for their data entry. Only specific cells would be un-locked. I would like a prompt (button) asking the student for his/her Name, then student Number prior to gaining access to this sheet. I would also like to have that info placed in the appropriate cells C3:E3 and C4:E4. They should not be able to close the file, without a ‘forced’ save via some VBa Code (if this is possible). So they would have 2 choices; 1)Close the file upon completion which will force a save 2)Check the solutions sheet upon completion, which will prompt them and force a save. I would like it for them to not have access to saving the file to wherever they chose, and would like for the program to only allow a save as mentioned above,either address or folder at work.
    Worksheet 3 would only be accessed after a prompting the students if they are sure they are done, and that their work is final if they wish to check the solutions. This action should save their work to the above mentioned.
    Attached Files Attached Files
    Last edited by mudraker; 03-26-2007 at 06:12 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Have a look at the attached book

    On opening book it hides sheets 2 & 3 - Can only be made visible via VBA code

    Button on sheet1 opens a form for student to provide name & number. If name already entered in sheet2 c3 form does not open.
    Code for OK button checks both name & number sulpplied before making sheet 2 visible & adding name & number to sheet2

    Sheet2
    If cells c3 or c4 are select a macro changes selection to another cell
    Sheet has 3 buttons 2 visible, i invisible which is made visible once the save button is clicked.

    There are no code to handle saving workbook at the moment.
    Saving to a mapped drive & folder would be the easiest option.

    I do not have time to continue on it at the moment - will have later today
    Attached Files Attached Files
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    Awesome

    wow,

    mudraker this is going exactly where I was hoping it would. As you know, I am still new to VBCode, but I do have limited programming knowledge and am making sense of what you have done. I have not been able to get sheet 3 to open, but I believe that may be because the code has not been written yet. I look forward to seeing the rest, when and if you do get the chance to work on it.

    thanks so much
    MBS

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Try this workbook - It should work as required

    Save commands have now been coded

    The module1 sheet has settings for sheet names, Path to save file to when save button on sheet 2 pressed.
    The file name when saving is a combiation of the workbook name & the students name as entered into sheet2 C3

    The only way to save the workbook is via the save button on sheet2 or for yours & my pupose a save macro on the module1 sheet. This sheet also has a macro to clear students name & number from sheet2.

    You will need to password protect the vba project as well as the worksheets

    Please make sure you test everything that you can.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    mudraker...

    I cannot thank you enough. I'm honestly jealous of your programming skills. As far as the program, everything seems to be working perfectly. I did notice in one of the codes that 'false' was incorrectly spelled, and am not sure if this has any negative effect on the program itself. Don't get me wrong, I'm not trying to point out a simple error, but I know that programming language has to be correct in order to execute. I'm just not sure exactly what that 'false' does.

    My next task is to try to take all this wonderful information and work you have supplied me, and apply it to my other Lab files. I'm hoping I can do this on my own.

    One thing that I cannot find is the text on the command buttons. If I wanted to change some wording, where would I go about doing this?

    Thanks again for all your help. I really appreciate it.

    Sincerely,
    MBS

  6. #6
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    Saving workspace

    mudraker,

    I've noticed that it seems to be possible to save the "workspace" prior to entering any student information. Is this because it is not protected at the moment, or is there something I can do to prevent this?

    MBS

  7. #7
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Good to see you picked up my typo

    This disables the button so it can not be clicked - true means button can be clicked
    Please Login or Register  to view this content.
    This hides the button - true means button is visible
    Please Login or Register  to view this content.
    There are commands on button2 macro to make button enabled & visible
    I could have just used 1 of the 2 commands, but played safe & used both or set up a blank book with the buttons & codes to act as a template

    To assist in applying to other books is why I have used the Const settings on the module sheet. Perhaps you could just redisgn sheets so you do not have to worry about setting up the buttons & the code for each book.

    To change the text on buttons
    Unprotext sheet
    Open Control Toolbox menu
    Click on Design mode button (triangle icon shap)
    When you run mouse over button pointer should change to a cross hair ( + )
    Right click on button
    Select Properties
    Edit Caption Entry
    Change Fore colour to change text colour
    Once changes are made
    ReClick on Design mode button (triangle icon shap)

    With the saving do you mean that you can save it at any time before student info is entered and by using any save method then we have a major problem & it should not be doing that.
    or do you mean that you can save it at any time by using the save button on sheet2
    If it is at any time by using button on sheet 2 then additional code can be added to test if certain cells have values before allowing a save. You would need to let me know the specifics

  8. #8
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    thank you

    everything is working just fine now. Thanks to you mudraker, I have been able to pick up a few thing in VB.

    My only question right now about the save thing, is if a student is clever enough, and saves the "Workspace" and If the final save is directed to a mapped drive, if that student is not connected to the internet, will the solutions sheet appear? I would think not, but I just want to make sure i cover all the bases as students will often find ways about going around things.

    Another question actually, I've read that passwords for worksheet protection are 'easy' to crack. Is this true, and should it be a concern of mine if I want to totally eliminate any student gaining access to the workbook?

    thanks for your time and help again. You've been of great assistance.

    MBS

  9. #9
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Question
    worksheet protection are 'easy' to crack. Is this true
    Answer
    Yes - a google search will turn up hundreads of links

    Q
    if a student is clever enough, and saves the "Workspace"
    A
    I have no experience with workspace saves

    Q
    If the final save is directed to a mapped drive, if that student is not connected to the internet, will the solutions sheet appear?
    A - Did not think of this. If save directory is not available solutions page will appear. I have modifed the code

    Before I paste the modification
    As the book is only allowed to be saved once Should the solutions page be made visible when the file is saved - instead of via a button
    Because the book has changed after it has been saved Excel asks you if you want to save when you close the book - Macro code stops the save if you answer yes

  10. #10
    Registered User
    Join Date
    02-18-2007
    Posts
    69
    I believe I am going to have to protect the workbook via a macro, as it appears much to easy to crack worksheet codes.




    Q

    "As the book is only allowed to be saved once Should the solutions page be made visible when the file is saved - instead of via a button"

    A
    yes...this would work better I believe


    Because the book has changed after it has been saved Excel asks you if you want to save when you close the book - Macro code stops the save if you answer yes

    Stopping the save, as long as the solutions sheet has not been shown is fine. I just don't want them to have access to the solutions sheet until they have submitted their answers.

    On a similar note, as it is now, I believe a student would be able to submit a "fake" name and number, get answers then reload the file with their input. What would you suggest to prevent this if it as all possible?

    thanks
    MBS

  11. #11
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    date and time seem to be input in name and number cell

    I'm not sure as to why it has changed, or if I inadvertently switched something to effect this, but it seems when I enter student name and number, or if i put in a number for student name, the second sheet is calculating the date and time for those numbers respectively.

    Does anyone know why that is?

    thanks,

    MBS

    see attached;
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    why???

    can anyone please tell me why when a number is entered for either student name, and/or student number a date/time of day show up on the second sheet in the cells designated for Student name and number.

    thank you
    MBS

  13. #13
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    MBS

    Looks like cell formatting has changed

    disable Range("c11").Select in the Worksheet_SelectionChange macro
    select c3 - set cell formating to general
    select c4 - set cell formatting to number & 0 decimal places

    re-activate Worksheet_SelectionChange macro

    Where are we up to with security on the workbook
    I do have some code that can encrypt & decrypt data that could be modified to work with your solutions sheet.
    Another option is to have the solutions stored on a seperate file that gets imported into the workbook when the view solutions page is clicked

    The above suggestions are not perfect as passwords to the vba module can be cracked.

    In The attached workbook I have changed the formatting as mentioned above
    Removed the view solutions page button & add code to the submit button macro to display the solutions page
    Fixed a bug in the save commands of the submit button macro
    Attached Files Attached Files
    Last edited by mudraker; 04-10-2007 at 06:22 PM.

  14. #14
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    security

    hey mudraker,

    I can't get the solutions sheet to come up after saving, however I'm not sure if that's because you made it to come in from a different file when prompted.

    As far as the security issue goes. My take on it is that protecting a worksheet is a bad idea as they are easy to crack and that there are no easily "un-crackable" codes to insert to protect pretty much anything. I believe what I am going to opt to do is to protect 'viewing and/or editing the code' and hope that no one is clever enough to get into anything before a forced save is made. I respect and trust your advice so please let me know what you think.

    What do you know about mapped drives and if I wanted to force a save to a mapped drive. Could an email address for example be "mapped?" I can figure out where to specify the save destination, however could use some help in putting in the correct info. Would it need a http? www? etc.

    thanks
    MBS

  15. #15
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    MBS

    When I save the file using the save button on the Assignment sheet it displays the Solutions page after it saves.

    Can you give any more info on the failure.

    I can not help you re your other query

  16. #16
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    It doesn't seem to work for me

    mudraker,

    maybe I'm missing something, but it doesn't seem to want to work for me now.

    here's what happens when I try to "submit" by hitting the button. It takes me to the editor and shows the 'stop' highlighted

    Private Sub CommandButton2_Click()
    Dim sFname As String
    Stop
    sFname = ThisWorkbook.Name
    If Dir(conPath & sFname, vbNormal) = vbNullString Then
    bSave = True

    I thought it may be because the file was in my c:/Temp but I emptied that and still same prob.

    I remember you mentioning something along the lines of being able to force the save to a "mapped drive". I'm not super familiar with what that means, but would it be possible to have the forced save access the internet and send the file once submitted to a specific address, say for example an email address?

    Also, I would like to force the input sheet (Assignment Tab) to be hidden, or to not be able to input any new data after the save is made. Could you recommend something.

    Thanks,
    MBS

  17. #17
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    I just noticed...

    when i run the subroutine mentioned earlier, the solutions sheet does show up. Again, this is only after the VBa editor pops up first. Then obviously the save is made in the appropriate folder on the c:

    ?

  18. #18
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I left a stop command in one of the macros
    I use stop commands when testing & debugging.


    This version has the stop command removed
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    works well

    mudraker,

    it works perfectly. thank you yet again.


    Any suggestions for the auto save, on how I could get it to be sent to say an email address instead of the c: ?

    MBS

  20. #20
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    MBS

    I well on the way to changing the code so that it sends an email & remove the save option.

    But I thing I have realized is that the solutions sheet can by copied to another workbook and then saved in the new book

    I am working on a solution for this problem.

    What version of Excel are you running?

    To test if some added code I wish to use can you put this macro in a new workbook, run the code and let me know if you get an error message or a message box displaying MBS DoNotSave
    Please Login or Register  to view this content.
    Last edited by mudraker; 04-14-2007 at 04:39 AM.

  21. #21
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    I'm running 2003

    hi mudraker,

    when I run the code, a message box appears "MBS Do not Save"

    MBS

  22. #22
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    assignment sheet

    is it possible to not allow the student to input any numbers, or better yet to not even be able to go back to the assignment sheet once he/she has submitted?

    MBS

  23. #23
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    MBS

    It is possible to hide the Exam sheet when the solutions sheet is displayed.

    I have thought of another problem & can not figure an easy way to resolve it.

    Once the solutions page is displayed the student could easily copy the sheet or part of the sheet to another workbook or even just paste it straight into an Email message.

    How does the above problem fit in with security of the workbook & keeping the solution page available only to students that have submitted their answers to the exam?

  24. #24
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    mudraker

    it's not a problem as i have made some alterations to specific labs as to what the student will be required to find. So the student will know only the correct answer to his/her problem, which was assigned only to him/her.

    I would like to however have 2nd sheet (the assignment sheet)non accessible after they submit, so basically they would submit, see the solutions, be able to print the solution (with their specific row of data) and that's it.

    MBS

  25. #25
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    MBS

    try this version

    I beleive it does everything you want to it to do
    Attached Files Attached Files

  26. #26
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    not working for me

    hey mudraker,

    thanks yet again for your help.

    I have tried to run the program, and inserted a valid email address in Module1 where you had placed [email protected].

    when I run the program and try to send (by saving via the button) it brings me into the editor and highlights the following;
    stop:

    ThisWorkbook.SendMail _
    Recipients:=conEmailAddress, _
    Subject:="Try Me " & Format(Now(), "dd/mmm/yy hh:mm:ss")


    what am I doing wrong, or what else do I have to change?

    thanks,
    MBS

  27. #27
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    MBS

    you are not running the latest version I posted 2 days ago

    You are running the previous version in which I had accidently left the stop command in it.

    You have 2 options
    Delete the Stop command then
    Pressing F5 will make the macro continue running.

    or use the latest version

  28. #28
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    still can't seem to get it to work

    mudraker,

    could you please take another look at the last sample you sent and explain to me how I should get the program to send me an email when the 'autosave' button is clicked. I seem to be stumped as I cannot get it to work properly. I have tried to put in a valid email address into the module, and when I run this part of the code seems to need to be debugged.
    Please Login or Register  to view this content.
    I appologize if I'm being a nuisance, but I just can't seem to get it.

    thanks again,

    MBS
    Last edited by royUK; 01-10-2008 at 04:01 PM.

  29. #29
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    MBS
    No trouble
    I need to apolagize. It looks like I missed your previous reply

    I replaced [email protected] with my email address & it worked ok.

    The code runs ok even with an invalid email address without displaying an error message.


    What version of Excel are you using.

    In Excel under File menu > Send To do you have options to select Mail Recepients
    Their may be several diffent Mail Recepients

  30. #30
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    Outlook

    hey mudraker,

    I am running the 2003 version, but while looking into what you suggested I notice that it does not appear that I have Outlook set up on the computer I've been doing my work on. I am going to try to get to another comp and see what happens.

    thanks
    MBS

  31. #31
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    That will do it. No Outlook no email can be sent.

    We are using the same version of Excel.

  32. #32
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    thanks again mudraker....

    works excellent when outlook is set up!

    my last concern (i think) is that when the email is sent out to the host address, the attachment is appearing as the original does, with the first sheet as the opener. I can't seem to get the 2nd and 3rd sheets open, which is my goal.

    Optimally, just the 3rd sheet (ie. the Solutions sheet) would be the attachment.

    Or, if you could tell me how I could view the solutions sheet from the email (by running through the editor I guess) that would work too.


    thanks for your response, and all your help

    MBS

  33. #33
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    another thing I've noticed

    mudraker,

    in trying to "act like a student," when I go to send my work, I am prompted by "would you like to send this email (or something to that effect)" and if I select NO the solutions still appear. It all works fine if YES is selected.

    I believe if only YES is selected, the answers should show up.

    Could you take a look at this as well if you get a chance.

    thanks
    MBS

  34. #34
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Changes made to this book

    No longer displays Solution page if mailing cancelled by using no button or any other mail failure (can not fully test on every mail failure)

    When opening the workbook it now displays solution page if experiment page has student name & number

    Can no longer save workbook except via SaveWorkbook() macro on VBA sheet Module1. Previous settings allowed workbook to be saved after it was emailed.

    Keep testing & looking for problems as you have been doing.
    Attached Files Attached Files

  35. #35
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    still get solutions when "do not send" is selected

    there seems to be the same problem when I select "do not send" and it shows the solutions.

    Is that one of the ways about it that can't be stopped?

    MBS

  36. #36
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    What version of outlook are you using?
    You are trying the latest version?
    I will re-upload my latest version. I have added date & time to the front page that I updated this version

    The emailing code is still the same as the previous version.

    I am using Outlook 2003.
    When I click on the Submit button I get the dialog box asking if you want to allow sending the email. The options are Yes, No & Help buttons
    Selecting Yes - the email is send , The experment sheet is hidden & the solution sheet is displayed.
    Selecting No - The email is not sent, The experiment sheet remains visible & the solutions page remains hidden.

    If you are still having problems then I will have to post a question asking for help to resolve the problem.
    Attached Files Attached Files

  37. #37
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    "are you sure" Form

    thanks for all of your help in this matter. I'm just getting back into this stuff, so is there any possible way to get a form that asks the student if "they are sure they want to submit" after they hit the submit form?

    thanks for any help,

    and I hope you are doing well.

    MBS

  38. #38
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Hi MBS

    I here I am thinking this thread was long done with

    Replace Private Sub CommandButton2_Click with the following version
    Right click on ASSIGNMENT Sheet Tab
    Select View Code

    Please Login or Register  to view this content.

  39. #39
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    as always...works like a charm

    thanks yet again mudraker,

    I have been trying to apply this template to some other applications, and was hoping to tweak a few things.
    Your help is much appreciated.

    happy holidays!

    MBS

  40. #40
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    student name in Subject line

    what would I need to type to get the student name in the sent email subject line as well?


    this is what comes up so far, but i would like to have the student name which they have already input in there as well.

    Subject:="Assignment #1" & Format(Now(), "dd/mmm/yy hh:mm:ss")



    thanks

    MBS

  41. #41
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Replace CommandButton2_Click macro with this version

    This version gets sender name from the Student Name field on the ASSIGNMENT sheet as set in the conWsExp constant

    The subject message is shown in red within the macro when viewed in this forum


    Please Login or Register  to view this content.
    Last edited by mudraker; 01-08-2008 at 08:04 AM.

  42. #42
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    outlook present,but not setup...solutions still show up

    i've got a problem in that i've tried to run the program from a computer that has outlook, but is not set up....the solutions sheet still appears, and no email is sent.

    is there a fix to this problem?

    thanks yet again

    MBS

  43. #43
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    to be more specific

    i guess to be more specific, outlook was set up on this computer, but to no host adress (if that makes sense), meaning you could not compose emails nor receive them (not the way you normally can anyway) but the automatic send when the programs were run would show up in "Sent Mail".

    In checking the host address specified in the code, no emails were received.

    Is that a glitch, or something that can't be avoided?

    thanks for any response,
    MBS

  44. #44
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I do not know if it can be avoided.
    I have no knowledge on this type of problem
    I will ask a couple of other posters who may have a better idea

  45. #45
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This will check if outlook is running, then offer to open it

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  46. #46
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Roy

    Thanks for looking at the thread.
    I do not beleive that your suggestion will solve the problem.

    The macro unhides a hidden sheet after the workbook has been Emailed.

    At present if Outlook is installed on a pc the macro sends the workbook to Outlook and then unhides the hidden page. This occurs even if Outlook can not sent the message.

    If Outlook can not send the message then the hidden sheet must stay hidden.

    Is there any way via VBA of identifying if the Email has actually been sent before allowing the macro to unhide the hidden sheet.

    Or have I missed the point of having the macro force Outlook to be open?

  47. #47
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I didn't have time to read the whole thread. I'll have a look at it later.

  48. #48
    Registered User
    Join Date
    02-18-2007
    Posts
    69
    thanks for looking into it guys...mudrakers' explaination is dead on.

  49. #49
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    has anybody had a chance

    could you please look into this thread if you get a moment..
    thanks in advance

    MBS

  50. #50
    Registered User
    Join Date
    02-18-2007
    Posts
    69

    identifying if email is sent through VBA

    "The macro unhides a hidden sheet after the workbook has been Emailed.

    At present if Outlook is installed on a pc the macro sends the workbook to Outlook and then unhides the hidden page. This occurs even if Outlook can not sent the message.

    If Outlook can not send the message then the hidden sheet must stay hidden.

    Is there any way via VBA of identifying if the Email has actually been sent before allowing the macro to unhide the hidden sheet.

    Or have I missed the point of having the macro force Outlook to be open?"


    Is there any way this can be done??

    Please and thanks to anyone who can answer.

    MBS

+ 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