+ Reply to Thread
Results 1 to 5 of 5

VB Loop different variables and stop variable to find a new variable..

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Unhappy VB Loop different variables and stop variable to find a new variable..

    Hello to everyone in VB!

    I require assistance.
    I have a large excel data file.. in column C have different items and dates.
    I require a macro that when it detects an item, copy it to column A continuously.. until you find another item and place the new item. There you are dates and which must be completed with the item value ..
    copy.png
    attach the file..Copy of Production planeed.xlsm
    thanks a lot and Best Regards!!

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: VB Loop different variables and stop variable to find a new variable..

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: VB Loop different variables and stop variable to find a new variable..

    Edit: Oops, I forgot to refresh before posting. MickG already posted nearly identical code.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: VB Loop different variables and stop variable to find a new variable..

    Hi,

    Find two subroutines.
    GroupA will do what you asked for and GroupG will put your data in Col G and H in a TABLE. I think you really want the GroupG output.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: VB Loop different variables and stop variable to find a new variable..

    wow! I have been impressed with so many people who are here to help !!

    I thank them all for share, I use each of the tools..
    I have optimized my job 80%

    Best Regards!!

+ 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. [SOLVED] Set Variable in Cell.Find / Loop
    By aucho in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2014, 11:56 AM
  2. Replies: 4
    Last Post: 03-06-2014, 07:49 PM
  3. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  4. [SOLVED] macro loop through variable range to find blank, add formula
    By sammar12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2012, 11:39 AM
  5. Find Method error: -Object variable with block set variable not set
    By bambino_32 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-02-2010, 01:18 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