+ Reply to Thread
Results 1 to 6 of 6

Macro with using relative references

  1. #1
    Registered User
    Join Date
    04-22-2015
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    30

    Macro with using relative references

    Well it may not be MACRO but something else, but you are all the experts that have been helping me for a while now...

    I am helping out a project here and am looking to see if this is possible to do.

    We are starting to offer training classes and are providing certificates of completion for each attendee. Sometimes we have small classes (10-12 people) and other times we have 50 people. Other times we may have multiple training classes going on and want to print all the certs at one time. Currently the certificates are being filled out manually, which IMO is a complete waste of time. I prefer the Scrooge McDuck method (work smarter not harder) so i need to see if there is an easier way of adding additional certs to this file without having to manually go in and put the formulas in on each sheet.

    I set up a template on page 2, so that we dont have to have different templates made up. I only have 5 fields I need to populate on each certificate, so I was wondering if there is an easy way to create the additional 49 templates and have them point to the correct fields without having to clean it up manually?

    Does that make sense?
    Attached Files Attached Files
    Last edited by SHAWKINS01; 10-14-2016 at 03:57 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Macro help pretty please....

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Please help with macro using relative references

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    04-22-2015
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    30

    Re: Macro with using relative references

    That is excellent!

    Is there a way to have it create these into the spreadsheet first before it starts printing? I know I am probably not asking the correct way how to do this...

    I am looking for it to create a new sheet with the template showing the completed cert before it prints. Or, better yet is there an easy way to have it just duplicate the cert page as page 3, page 4, page 5 etc... keeping the formulas intact?

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Macro with using relative references

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-22-2015
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    30

    Re: Macro with using relative references

    PERFECT!!!! I snipped the following:
    'print all sheets
    ThisWorkbook.Worksheets(PrintList).PrintOut

    'clear the certificate template
    Sheets("Certificate").Range("D19,D21,D24,D26,D29").ClearContents

    since it waned to send straight to the printer before I could review the certs. But after that it was Exactly what I wanted!!!

+ 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] macro to sort using relative references
    By kent97 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-19-2016, 11:20 AM
  2. Understanding relative references in VLookup in macro
    By UML in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2014, 01:21 PM
  3. Absolute references in relative ref macro
    By dillona27 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2014, 10:11 PM
  4. Macro relative references
    By JensPeter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2010, 12:33 AM
  5. [SOLVED] How to make a macro with relative references
    By Hall in forum Excel General
    Replies: 4
    Last Post: 03-16-2006, 11:00 PM
  6. [SOLVED] Relative references and macro programming
    By Ruth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-26-2005, 11:05 PM
  7. [SOLVED] macro vba relative references
    By aut1jlt in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-20-2005, 02:06 PM

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