+ Reply to Thread
Results 1 to 12 of 12

3 issues hindering CSV File Creation - Modification Help Request

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

    3 issues hindering CSV File Creation - Modification Help Request

    Good day!

    I am stuck in a bit of a problem despite of a brilliant code that was provided by a Forum Guru. It has got absolutely nothing to do with the code but the way my data gets generated. With due respect to the previous assistance. I need a little customization in this code to take care of my data related inevitable issues> that I have been struggling with over the last few days…

    Really appreciate all your help and guidance….

    The code works well with sample2 but doesn’t with sample3 due to the following reasons:

    Issue: Column D values (ID) / Time / Phone or values are missing
    Modification Requested: Ignore the entries where the - Column D values (ID) / Time / Phone or values are missing and generate the file

    Issue: Time format isn't correct in Column O
    Modification Requested: Format the time to general. To make the code work. (I do this manually by: text-to-column" - Delimited - Next - Next – General)

    Issue: Some of the cells in column U (example U7 and U12) appear to be blank, but they aren't
    Modifications Requested: On filtering the blank cells in Column U and pressing delete the code works – If the code can do this as well please..


    Some background on what the code does:
    • Creates a CSV file
    • The macro searches the non-blank cells in column U of the source report (similar to the attached sample2)
    • For all non-blank cells from Column U. It picks the numbers in column H and paste them into Column A of a CSV file after formatting so a number like 1-111-111-111 becomes 1111111111
    • In the next step, it picks the numbers for the same rows from Column D of the source file and pasts them as they are in Column B of the CSV file
    • In the last step, it appends the current days date in Column C of the CSV file and concatenates it with the Time values in Column O of the source file as after formatting as “Text” (Example: 5/23/2013 10:49:25 AM)

    Thank you well in advance to help me sort this puzzle.


    Warm regards,
    ILI
    Attached Files Attached Files
    Last edited by Ilikeideas; 06-09-2013 at 08:56 AM.

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    Need some assistance please. I am totally stumped on this. Such an irony a brilliant solution can't be used due to some formatting issues, just hoping someone could help on this.....

    Little tweak needed. Please help modify.

    Thanks a bunch in advance.
    Last edited by Ilikeideas; 06-09-2013 at 08:58 AM.

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request.

    Could anyone please advise on this. I'll be greatful. The data format has put a break on my project completeion.

    Please help modify.
    Last edited by Ilikeideas; 06-10-2013 at 09:45 AM.

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    Hi All,

    I have recorded a macro to deal with issue 2 and 3. But need some experts help to incorporate this is the main macro attached in Post 1.

    Sorry am new to the VBA community so trying my best after searching and doing stuff. Apologies if the recorded macro below does look bad.

    I have tried it for the following two issues:

    Issue: Time format isn't correct in Column O
    Modification Requested: Format the time to general. To make the code work. (I do this manually by: text-to-column" - Delimited - Next - Next – General)

    Issue: Some of the cells in column U (example U7 and U12) appear to be blank, but they aren't
    Modifications Requested: On filtering the blank cells in Column U and pressing delete the code works – If the code can do this as well please..

    Please Login or Register  to view this content.

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    I await help on this. Kindly, kindly please advise...

    Thank you,
    ILI

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    ILI,

    Updated code to account for mentioned discrepancies:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    Sorry It just did. Perhaps the CSVs need to be saved in a different folder. I was trying to save them in the same folder as the destination files.

    Sorry...I'll test more.

    Thanks!
    Last edited by Ilikeideas; 06-10-2013 at 12:08 PM.

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    No words to describe...How happy I am....Thanks a billion

    You made my life super-duper easy...I'm extremely happy

    Have a brilliant day ahead!

    Thanks,

    ILI

  9. #9
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    You can change where the CSV files get saved to by updating the italicized portion:
    ActiveWorkbook.SaveAs folderpath\filename.csv, xlCSV

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    Got it Sir! I will follow it.

    Many thanks for this immense help.

    Best regards,
    ILI

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

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    Dear Tigeravatar,

    Hope you are doing great!

    Thank for all the help with the VBA. It has been of great utility.

    Just have a quick question on a change that I made to your fantastic script to cater to my additional requirement. Would it be possible for you to help me with a slight input wherein I actually want the date for concatenation in Column C to be picked from column A of the spreadsheet from which the CSV file gets created instead of the current days date, is it currently is?

    I posted the modified script on the forum to get slight more assistance but wasn’t lucky enough.

    Here is the thread and the code on which I request your expertise:

    http://www.excelforum.com/excel-prog...03#post3291803

    Please Login or Register  to view this content.
    Thanks,
    ILI

  12. #12
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: 3 issues hindering CSV File Creation - Modification Help Request

    Responded in your other thread

+ 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