+ Reply to Thread
Results 1 to 6 of 6

Need assistance to create multiple entries from one using VBA.

  1. #1
    Forum Contributor
    Join Date
    11-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    185

    Need assistance to create multiple entries from one using VBA.

    Hi Everyone,

    I need a slight help to create multiple entries from the original using VBA magic. In a nutshell, here's what I want to do:

    Original Entry: 1111111111 512345 6/4/2013 10:49:03 AM

    I need to replicate this entry by adding and deducting 5 minutes. My expected output is:

    1111111111 512345 6/4/2013 10:44:03 AM
    1111111111 512345 6/4/2013 10:49:03 AM
    1111111111 512345 6/4/2013 10:54:03 AM

    Please see attached spreadsheet for some more examples.

    Thank you in advance for your help!

    Regards,
    ILI
    Attached Files Attached Files
    Last edited by Ilikeideas; 08-06-2013 at 02:23 AM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Need assistance to create multiple entries from one using VBA.

    Hi ILI,
    try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    185

    Re: Need assistance to create multiple entries from one using VBA.

    Works great on the sample. I will run it on my real data set and come back shortly.

    Thanks for your kind consideration to my request.

    Regards,
    ILI

  4. #4
    Forum Contributor
    Join Date
    11-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    185

    Re: Need assistance to create multiple entries from one using VBA.

    Thanks…This works great!

    Just one slight issue as soon as I convert the file into a CSV the seconds get converted into 00.

    Example: On conversion to a CSV the output changes from:

    1111111111 512345 6/4/2013 10:49:03 AM

    TO:

    1111111111 512345 6/4/2013 10:49:00 AM


    Could you advise as to why this may be happening?

    Thanks,
    ILI

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Need assistance to create multiple entries from one using VBA.

    try setting the cell format hh:mm:ss, and then save as csv

  6. #6
    Forum Contributor
    Join Date
    11-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    185

    Re: Need assistance to create multiple entries from one using VBA.

    Sorry, was unwell…and therefore could not respond earlier!

    The hh:mm:ss approach doesn’t seem to work. Please let me know if you have any other thoughts to help me counter it.

    Anyways closing the thread. Thank you!

+ 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: 0
    Last Post: 03-20-2013, 11:18 AM
  2. Assistance to create a food intolerance spreadsheet
    By iamstellaman in forum Excel General
    Replies: 2
    Last Post: 05-26-2008, 01:15 PM
  3. Counting Enteries
    By edver in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-18-2006, 02:50 PM
  4. identify duplicate enteries
    By Debi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2005, 08:05 PM
  5. filtering duplicate enteries
    By chris in forum Excel General
    Replies: 0
    Last Post: 08-29-2005, 05: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