+ Reply to Thread
Results 1 to 3 of 3

Macro to create sheets and fill in the data

  1. #1
    Registered User
    Join Date
    04-14-2011
    Location
    Croatia
    MS-Off Ver
    Excel 2003
    Posts
    30

    Question Macro to create sheets and fill in the data

    Hi,

    i have attached a sample Excel. I am working with Excel 2003.

    I need to create a copy of the Form sheet and fill it with data from the Data sheet based on the ID field: i.e. for store 1 with ID = 111 i need to create a copy of the Form sheet and fill the data.

    In the Excel sample i have created a few copies of the form so you can see what i want to accomplish (sheets 1, 2, 3 to 19).

    Thank you in advance for any help you can give me
    Attached Files Attached Files
    Last edited by strippy; 04-22-2011 at 02:07 AM.

  2. #2
    Forum Guru tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Macro to create sheets and fill in the data

    strippy,

    Attached is a modified version of your example2 workbook. It contains a button that has the following macro assigned:

    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-14-2011
    Location
    Croatia
    MS-Off Ver
    Excel 2003
    Posts
    30

    Smile Re: Macro to create sheets and fill in the data

    Hi,

    thank you very much tigeravatar. The code works great. There was just one small problem. When there's a blank cell within a column the code skips it and moves all the data one row up. I made a small change to the code that fills in the data to the Data sheet and filled all the blanks with " ". So now everything works great.

    Thank you very much once more.

+ 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