+ Reply to Thread
Results 1 to 10 of 10

How to add a signature at the bottom of list?

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    How to add a signature at the bottom of list?

    Hi friends,
    The following macro is working fine with correct output but I want to insert a signature of a class teacher at the bottom automatically. The range is from columns ‘m-w’ and the passout students varies time to time as per different divisions of that particular standard. I want to skip two rows after the last entry of passout student and then insert a signature of class teacher in column ‘V’.

    Suppose the last entry of passout student is on row 56 then I want to skip row 57 and 58; insert a designation ‘Class Teacher’ in cell ‘V59’ and the name of the teacher ‘John Turco’ in cell ‘V60’. Finally I want to add a border to this table from range ‘M1-W61’; this bottom border changes time to time as per the entries of passout students.

    Note that the row 5 is blank and hidden.

    Please Login or Register  to view this content.
    Any help will be appreciated.

    Thanking you,
    Sincerely,

    mso3

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to add a signature at the bottom of list?

    Without knowing where you're going to get the teacher's name from, this code at the end would insert the values as you've described:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to add a signature at the bottom of list?

    Hi JBeaucaire,
    Excellent! It's working absolutely fine as per my requirement. However a little revision is require. Sorry for not mentioning from where I'm getting the name of class teacher. I'm getting the name of class teacher from Information sheet cell address '=Information!$r$10'.

    Please do this little amendment to solve the problem.

    Thank you very much.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to add a signature at the bottom of list?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to add a signature at the bottom of list?

    Hi JBeaucaire,
    It's working fine but a another problem is there. Next time the signature repeats each time because we are not deleting the first region so the code inserts a next time signature at the bottom of it which I don't want. Secondly I want to skip 2 rows (leave blank rows) in between the last entry and the signature as mentioned before.

    If the last entry is on row 56 then the signature should be on row 59 and 60 respectively.

    row 59: Class teacher
    row 60: =Information!$r$10 'The name of teacher

    Solution please!

    Thank you,

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to add a signature at the bottom of list?

    I am guessing at what you need changed regarding running your macro a second time. The macro appears to do a ".currentregion.clearcontents" at the beginning in an attempt to "reset the area". Is that not working for you? Perhaps this would do a better job:

    Please Login or Register  to view this content.
    Hopefully that will clear enough that inserting the signature later works normally and correctly.



    Make note of how we are using OFFSET() and you can edit as needed:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to add a signature at the bottom of list?

    Ok! It now solved the repeating signature problem for this time because the entries of pass students varies from standard to standard. So the clear content should not be restricted to row 11 it should be at the end of region from m6. The border starts from m1 so it should be deleted before running the macro again to avoide several borders at the bottom as many times I run the macro a border is added.

    Suggest me a code to delete the border and signature first and run the macro to get perfect output.

    I understood the offset function and changed the number 2 to 3 to get 2 blank rows in between entries and the signature.

    Thank you for guidance.

    Sorry for trouble.

    Thanking you.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to add a signature at the bottom of list?

    Try switching from .CLEARCONTENTS to .CLEAR

    NOTE: The "11" in the Resize is in the columns parameter. We are starting at M6, the resizing down the same number of rows as are currently used, then resizing to 11 columns to get all the way out to column W.

  9. #9
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to add a signature at the bottom of list?

    Hi JBeaucaire,
    Excellent! Now it's working absolutely fine as per my requirement.

    I appreciate you for your kind help and guidance to improve my knowledge.

    Thank you and have a nice day.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to add a signature at the bottom of list?

    Glad to help. Cya next time.

+ 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. Can excel sort a list A-Z then numbers at the bottom of the list.
    By redsab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2014, 01:35 PM
  2. Copying data in the last line of one list to the bottom of another list
    By bluehaven in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2013, 09:24 AM
  3. Multiple signature or signature areas on a form
    By dstocker in forum Excel General
    Replies: 0
    Last Post: 05-25-2012, 05:08 PM
  4. [SOLVED] use Outlook address list as time /date/ signature stamp in Excel
    By DennisJH-CM in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2006, 02:30 PM

Tags for this Thread

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