Consulting

Results 1 to 4 of 4

Thread: Disable Send by Email

  1. #1

    Disable Send by Email

    Hello everyone,

    I am trying to disable the ability for the user to send a workbook by mail. I hid the Save & Send tab from the File menu; but this does not prevent the users from sending an email if they have a shortcut somewhere else.

    Any ideas?

    Thanks
    Feedback is the best way for me to learn


    Follow the Armies

  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    hi.
    you can customize the ribbon.
    but what if the user "right click"s the file, clicks "send to" and "email recipient" in windows explorer?
    or "share" tab, "send" group, "email" in windows explorer (win8)?
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

  3. #3
    Hi Thanks,

    * The file is in a location that the users never send workbooks from.
    * I have added a custom ribbon to hide the "Share" tab.
    * I have also disabled the save as so they have to save it through an specific button.


    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">	<backstage>
    	
    		<task id="SendUsingEmail" onAction=""/>
    
    
    		<tab idMso="TabShare" visible="false"/>
    	</backstage>
    
    
    </customUI>
    Thanks
    Feedback is the best way for me to learn


    Follow the Armies

  4. #4
    Hello,

    I have been reading about this and what I wanted to do; which is was to override the default task if a button, is not possible.

    It is not possible to override these commands from the custom UI XML markup or by using the object model. Using theDocumentBeforeSave event is one alternative, but using that doesn't really change the functionality of the individual commands that show up in the Change File Type gallery in the Backstage.
    A better solution would be to consider hiding the built-in UI and rebuilding it fully with custom commands.
    http://msdn.microsoft.com/en-us/libr...ffice.14).aspx

    This is a closed threat.

    Thanks a lot for the help.
    Feedback is the best way for me to learn


    Follow the Armies

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •