+ Reply to Thread
Results 1 to 7 of 7

Macro to email workbook with hidden rows

  1. #1
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Macro to email workbook with hidden rows

    I want to send the attachment to about the 13 persons mentioned in the attachment, is there any possibility if I send this file to the 13 persons at the same time no body can see another data, i.e. if Mr A is seeing this file he must see only his row the others must be hidden.
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Macro to email workbook with hidden rows

    If you know usernames of these persons you can put macro in Workbook_Open which loop through rows by Environ("username") and hide/unhide them.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Macro to email workbook with hidden rows

    Dear Mr KOKOSEK look at the attachment i have mentioned all the names,
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Macro to email workbook with hidden rows

    Another approach could be to only send the line of data to each individual. I added the emails on the far right column. Try the following.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Macro to email workbook with hidden rows

    If these names:
    Please Login or Register  to view this content.
    are matching with their usernames.

    Please put these:
    Please Login or Register  to view this content.
    into ThisWorkBook code.

    While closing all rows will be hide and when open macro check names in col. B and when it is matching with username unhide row for username.
    So when you save it (with automatically hidden all rows), you can resend for everyone.

    p.s. in attached file JAVAD is activeuser and his line is unhide (check comments in code).
    Attached Files Attached Files
    Last edited by KOKOSEK; 04-19-2021 at 09:39 AM.

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Macro to email workbook with hidden rows

    Quote Originally Posted by maniacb View Post
    Another approach could be to only send the line of data to each individual. I added the emails on the far right column. Try the following.
    That's very good idea however OP wants to send attachment on email not pasted table into it.
    But you this macro can be used to send separate email with already hidden particular row.

  7. #7
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Macro to email workbook with hidden rows

    Dear sir,
    Thank you very much for your reply and help but
    when i click on Email tab it opens up "Welcome to outlook 2016" whereas i am not using outlook but using google email.
    as an example i have shown some of the email with name in the sheet

+ 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. [SOLVED] Cannot edit macro in hidden workbook
    By debspecs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-14-2022, 09:17 AM
  2. [SOLVED] Email range macro shows hidden rows in the email
    By jennis7242 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2019, 11:04 AM
  3. Replies: 1
    Last Post: 02-11-2015, 07:47 AM
  4. Hidden Macro in a workbook
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2013, 01:10 PM
  5. Sending Email from sheet without hidden rows prompt
    By mdsickler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2013, 11:59 PM
  6. Macro to PDF a sheet in workbook and email (outlook) to an email address in a cell
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 12:54 AM
  7. [SOLVED] VBA Macro cannot see hidden workbook
    By andjbird via OfficeKB.com in forum Excel General
    Replies: 0
    Last Post: 07-26-2006, 10:40 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