+ Reply to Thread
Results 1 to 5 of 5

Automate By VBA

  1. #1
    Banned User!
    Join Date
    06-04-2018
    Location
    Punjab, Pakistan
    MS-Off Ver
    2016
    Posts
    61

    Automate By VBA

    I need VBA for my data I.e. i have following data

    QTY Cut# Size Bundle #
    36​ 496​ 2 1​
    26​ 498​ 4 3​
    26​ 498​ 6 4​
    26​ 498​ 8 2​
    26​ 498​ 10 7


    This is my current data i need this in following output. I have a too large sheet of this data.

    QTY Cut# Size Bundle #
    36​ 496​ 2 1​
    26​ 498​ 4 2​
    26​ 498​ 4 3​
    26​ 498​ 4 4​
    26​ 498​ 6 5​
    26​ 498​ 6 6​
    26​ 498​ 6 7​
    26​ 498​ 6 8​
    26​ 498​ 8 9​
    26​ 498​ 8 10​
    26​ 498​ 10 11​
    26​ 498​ 10 12​
    26​ 498​ 10 13​
    26​ 498​ 10 14​
    26​ 498​ 10 15​
    26​ 498​ 10 16​
    26​ 498​ 10 17​



    In bundle column if we have 2 bundles then our VBA should add one more rows if we have 3 bundles then our VBA should add 2 more rows and so on. Kindly do the needful as soon as possible.

    Regards
    Pari
    Excel Learner

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,009

    Re: Automate By VBA

    I do not understand what do you want to achieve to be honest.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365
    Posts
    19,534

    Re: Automate By VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  4. #4
    Forum Contributor
    Join Date
    08-26-2016
    Location
    UK
    MS-Off Ver
    O365
    Posts
    258

    Re: Automate By VBA

    Power Query (aka Get & Transform Data) solution in the attached.
    Change the data in the left table, right-click and choose Refresh to update the table on the right.

    edit: Moderator has placed a request which when fulfilled attachment will be re-attached.
    Last edited by p45cal; 04-01-2021 at 10:41 AM.

  5. #5
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    17,739

    Re: Automate By VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Automate
    By markcrooks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2013, 06:00 AM
  2. Automate XML downloads
    By Silverchewy in forum Excel General
    Replies: 0
    Last Post: 03-09-2009, 02:55 AM
  3. how to automate this...
    By Arron77 in forum Excel General
    Replies: 7
    Last Post: 02-23-2009, 08:46 AM
  4. Automate 1
    By vijaydsk in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 04-02-2007, 11:26 PM
  5. Automate without add-ins
    By Rob Oldfield in forum Excel General
    Replies: 3
    Last Post: 10-21-2005, 03:05 PM
  6. Automate Add-in
    By Gary's Student in forum Excel General
    Replies: 4
    Last Post: 06-19-2005, 10:05 PM
  7. Trying to automate
    By Robert Gillard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2005, 08:06 AM

Tags for this Thread

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