+ Reply to Thread
Results 1 to 7 of 7

VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    12

    Question VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

    Please see attached for explanation of problemo.excel_example.JPG

    Steps:
    Sort both columns by date, oldest to new. Add/insert rows of data (command1, command2, command3, etc...) underneath cells in column B of text but not overwriting the existing data.
    Please help, I've been working on this for a couple of days now and no luck. Just a lot of head banging and arms in the air!!! Please excuse how I represented my easy question for you guys.
    Last edited by goradiar; 08-06-2012 at 06:16 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

    Why don't you record the steps with the macro-recorder?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

    The data will change over time, i.e. There will be more dates and texts... Could the macro-recorder still work for this?

    ---------- Post added at 03:25 AM ---------- Previous post was at 03:23 AM ----------

    I know how to record the macro and do the sorting but when it comes down to having more/different data, I think this becomes more difficult.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

    You can change the code after it is recorded.

  5. #5
    Registered User
    Join Date
    08-06-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

    OOOOh! That is a good way to start! Awesome! I will give it a try. Thank you, thank you, for your help!

  6. #6
    Registered User
    Join Date
    08-06-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

    Well... I couldn't get any where and my thoughts kept on getting jumbled up and it didn't make any sense using the macro-recorder... Here is another example for what I would like to accomplish, if this makes more sense. You have Names in Column A and Start/Finish times in Column B/C. Sort out names (oldest to newest) and start/finish in accordance with their associated times. Now, what I would like to do is put their associated tasks under each of their names in Column E but only according to their START times. Their names will obviously be repeated over time but the tasks stay the same and some names don't have a Finish time. Let me know if you all have any ideas please, it's been a rough week. See attached for more clarification. Thank you, thank you.excel_example1.jpg

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA Halp! Sort Columns by date; Insert/add Data Underneath the Cell in Column B

    If you add an excel example, forummember also can test the code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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