+ Reply to Thread
Results 1 to 5 of 5

copy lines a specified number of times

  1. #1
    Registered User
    Join Date
    03-26-2008
    Posts
    45

    copy lines a specified number of times

    I have a user form. All of the generic data is entered in, but there are instances when the data must be entered on multiple lines, except for one value which would change. I hate having to copy down the lines every time manually.

    I added a command button on the first form (Add additional payers)
    that will add all of the generic data once, and then bring up another form that just asks for the enrollment number and the number of additional payers to add, and then gives combo boxes with the list of payers.


    How would I code this to:

    Find the enrollment number on the worksheet
    Copy range $b2:$q2 down X number of times (the value in the second textbox)

    I think I've got how to add the rest of the boxes onto the lines.

    I appreciate any help, I'm still pretty new with this. I can attach an example but I don't know how. Thanks.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Kim_J,

    To attach a file when you post, scroll down the page to Additional Options and click the button Manage Attachments. Just follow the prompts after that.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    03-26-2008
    Posts
    45
    Invalid file?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Kim_J,

    The file must be zipped before you cab attach it.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    03-26-2008
    Posts
    45
    Aha, got it, thanks.

    So basically what needs to happen is there must be a row on the "data" tab for each separate enrollment(payer)
    However, the same company might have several enrollments.

    Instead of copying manually, or filling out the same form 9 different times, I would like to be able to have it look up the enrollment number it gives when the first payer is added, and then copy cells in column b, and then d-i the number of times in column j, right underneath. I think I can figure out how to get the other payer names in there, I have no idea where to go with this part.

    Thanks in advance to anyone who can help!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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