+ Reply to Thread
Results 1 to 7 of 7

macro to create an output file "worksheet"

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    philippines
    MS-Off Ver
    2007
    Posts
    4

    macro to create an output file "worksheet"

    hi guys,


    i need your expertise if this is possible using in vba.

    i have an excel file that contains thousands of rows see attached excel file. i need to copy the "input" file put it in the "output" file. then insert an empty rows on below each rows based on the valueS ON "PEANUT" column see "output" file. then it will fill up the color based on the "reference" sheet.

    hope you could help me.

    thanks in advance.
    P.S. i could not reply immediately since i dont have internet in my workplace..
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to create an output file "worksheet"

    Hi dexterP

    Welcome to the Forum!!!

    This Code in the attached doesn't have your fancy formatting but it may get you started. CTRL + x will fire the Code.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    07-15-2015
    Location
    philippines
    MS-Off Ver
    2007
    Posts
    4

    Re: macro to create an output file "worksheet"

    hi john,

    thank you very much for this code. however, as try to run it. an error will appear "object variable or with block variable not set". i use debug, it will highlight this area [ c = Sheets("REFERENCE").Rows(2).Find(Cel.Offset(0, 3).Value, , xlValues, xlPart, xlByRows, xlNext, False).Column + 1 ]. my understanding is that c is not declared but in your code its already declared.

  4. #4
    Registered User
    Join Date
    07-15-2015
    Location
    philippines
    MS-Off Ver
    2007
    Posts
    4

    Re: macro to create an output file "worksheet"

    by the way thanks for the warm welcome

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to create an output file "worksheet"

    Hi dexterP

    For want of a . (dot)..
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-15-2015
    Location
    philippines
    MS-Off Ver
    2007
    Posts
    4

    Re: macro to create an output file "worksheet"

    hi john,

    it now works. thank you very much...
    this will make it quick i could finished my job on time...

    but i'll try to manipulate this one to format the borderlines...

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to create an output file "worksheet"

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  2. Create a "XLTM" from a "XLSM" file.....HELP!
    By tnt6869 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2014, 04:31 AM
  3. Excel VBA Code to make my Toggle Buttons output "Yes" or "No" to their cells
    By mebanet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2013, 06:14 AM
  4. Replies: 0
    Last Post: 08-18-2010, 02:17 PM
  5. Replies: 2
    Last Post: 07-26-2010, 06:59 AM
  6. How do i create macro to count number of "Y" or "N" in different worksheets
    By tehseen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2009, 12:34 PM
  7. Replies: 3
    Last Post: 10-25-2005, 07:05 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