+ Reply to Thread
Results 1 to 3 of 3

E-Mail Named Range as a Password Protected Workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    11-15-2007
    Posts
    57

    E-Mail Named Range as a Password Protected Workbook

    As part of our monthly routine at our youth football club, I would like to be able to e-mail my fellow committee members with details of all current members and, amongst other things, how much they have paid/owe in subscription fees.

    I have the data that I wish to e-mail in a named range (All_Members) and have used Ron de Bruin's code (below) to be able to e-mail it but I have not been able to password protect it. The password would remain the same each month and I assume that a change of password would simply involve amending the VBA code where necessary.

    HTML Code: 
    Please could someone help with this.

    Thanks in advance
    Last edited by Bigmal70; 06-26-2017 at 07:41 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,652

    Re: E-Mail Named Range as a Password Protected Workbook

    I think this is all you need. Change the password to suit.

    .SaveAs TempFilePath & TempFileName & FileExtStr, FileFormat:=FileFormatNum, Password:="Secret"
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    11-15-2007
    Posts
    57

    Re: E-Mail Named Range as a Password Protected Workbook

    Spot on

    Thanks you very much

    Now marked as solved

+ 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. Opening Password-protected workbook, but still being prompted for password
    By dpmcgonigle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2015, 12:34 AM
  2. Replies: 2
    Last Post: 11-17-2014, 04:28 PM
  3. Password Protected workbook linked to cell range
    By Rawriquez in forum Excel General
    Replies: 0
    Last Post: 01-22-2014, 10:19 AM
  4. [SOLVED] Workbook Protection - password stored in named range
    By TC1980 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-07-2013, 04:52 AM
  5. Replies: 0
    Last Post: 09-16-2013, 05:15 AM
  6. [SOLVED] Password array to open all password protected workbook in a folder
    By rename in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-07-2012, 05:06 AM
  7. Copy a range and paste into another workbook - files are password protected.
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-20-2008, 06:57 AM

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