+ Reply to Thread
Results 1 to 6 of 6

Macro for automating the manual stuff

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    paris
    MS-Off Ver
    Excel 2003
    Posts
    16

    Macro for automating the manual stuff

    Hi,

    This is my first post in the forum.

    I am new to vba programming need your guidance for automating the manual work.

    I have a excel based on the data starting from 7th row I am generating a script for a third party tool(DollarU) in column E using concatenation function in xls. This data i am copying to a .bat file and executing it.

    I required your help in automating the same using a macro. The macro has to generate the data in column E(pls see the attached file) using macro and the output data should be a .bat file in C:\ folder.

    Please guide me how to write a macro for achieving this.

    Thanks.

    Shruthi
    Attached Files Attached Files
    Last edited by shruthidwh; 10-04-2011 at 12:22 PM.

  2. #2
    Registered User
    Join Date
    09-30-2011
    Location
    paris
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Macro for automating the manual stuff

    Hi ,

    If any one has any example of a some macro..,where we will get the data from the xls and generate the files.,pls provide me I will start with that as I am new I don't know where to start this from.

    Regards,
    Shruthi

  3. #3
    Registered User
    Join Date
    09-20-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Macro for automating the manual stuff

    Hey , Macro will be complicated for your requirement, I think you should keep your existing code as is, you may convert the xls to csv and using some batch you can copy the column E to separate batch scripts.

    Writing the entire code as per your requirement will be very complicated.

  4. #4
    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 for automating the manual stuff

    Hi shruthidwh

    This code is in the attached. It creates the output in Column E. You'll need to verify the spacing is correct.
    Please Login or Register  to view this content.
    Included in the code are two procedures for creating the .BAT file. I'm certainly no expert in creating .BAT files (or much of anything else for that matter). The .BAT file code is from http://visualbasic.ittoolbox.com/gro...celvba-3926212 and has been modified to suit. You can try either procedure by uncommenting one and commenting the other.

    Let me know of issues.

    PS: By the way...Welcome to the Forum!!!
    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.

  5. #5
    Registered User
    Join Date
    09-30-2011
    Location
    paris
    MS-Off Ver
    Excel 2003
    Posts
    16

    Smile Re: Macro for automating the manual stuff

    Hi John,

    Thanks a lot for the macro ., can you please tell me how to modify the below.

    if the jobcode in the xls is equal to UR88 then I need to generate some additional parameters(pls see the attachment). Please tell me is there any case statement in vb to acheive this.

    Regards,
    Shruthi

  6. #6
    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 for automating the manual stuff

    Hi shruthidwh

    Sure is...see code in the attached. Again, you'll need to check the spacing.

+ 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