+ Reply to Thread
Results 1 to 14 of 14

Pick Date from Column A instead of current date.

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

    Pick Date from Column A instead of current date.

    I have tried enough but don't seem to be getting anywhere. I am sure it will be a very easy one for the experts.

    All I need is the following script to pick date from column A of the excel sheets I am trying to convert into CSV as against the current days date while concatenation in Column C.

    My result in column C is like this 6/18/2013 9:11:00 AM

    Here is the script:

    Please Login or Register  to view this content.
    Last edited by Ilikeideas; 06-25-2013 at 10:33 AM.

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

    Re: Pick Date from Column A instead of current date.

    Request for some insights on this please...

    Thanks much!

  3. #3
    Forum Contributor
    Join Date
    07-19-2012
    Location
    Redmond, WA
    MS-Off Ver
    O365
    Posts
    133

    Re: Pick Date from Column A instead of current date.

    I see alot of Format (Now)...
    Try the following:
    Please Login or Register  to view this content.
    This was appended to the back of some other code I was using and appeared to work for me...

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

    Re: Pick Date from Column A instead of current date.

    Thank you in the first place for looking into this.

    However, I have a couple of questions:

    Will this enable me to pick the date from column A of my spreadsheets?

    Where exactly do I apppend this in my code?

    The code I posted works fantastically, but it only populates the current date. My data sheets have varying dates in column A.

    Thanks!

  5. #5
    Forum Contributor
    Join Date
    07-19-2012
    Location
    Redmond, WA
    MS-Off Ver
    O365
    Posts
    133

    Re: Pick Date from Column A instead of current date.

    No problem. First, let me state that I am fairly new to VBA programming.

    That said, I would think that instead of the Format (Now), this would be placed. For example:
    Please Login or Register  to view this content.
    changed to
    Please Login or Register  to view this content.
    Is this you are copying from?

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

    Re: Pick Date from Column A instead of current date.

    So kind of you

    I'll give it a try and come back. Just to double confirm the changed snipppet will now pick the date from Column A of my rows in the excel file. Is my understanding correct?

    Thank you!

  7. #7
    Forum Contributor
    Join Date
    07-19-2012
    Location
    Redmond, WA
    MS-Off Ver
    O365
    Posts
    133

    Re: Pick Date from Column A instead of current date.

    Honestly, I don't know. I'm just going off the requirement.

    It is my understanding that the (Now) bit pulls from the current system date and time. With a second look at your code, it appears logical to remove that bit...

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

    Re: Pick Date from Column A instead of current date.

    Ya, you seem to be correct on that bit. My actual requirements is to bee able to pull the dates from Column A.

    Guess I'll have to wait for some more help.

    Thanks anyways and good luck!

    Add me as a friend if you like we'll live and learn...

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

    Re: Pick Date from Column A instead of current date.

    I got this fantastic code from Tigeravatar (One of the great people) out here.

    Just modified it to meet my other request. Could someone please help me to change the:

    Please Login or Register  to view this content.
    So that the code in Post 1 picks the date from Column A of my spreadsheets instead of the current date.

    Thank you.

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

    Re: Pick Date from Column A instead of current date.

    Hello Dears,

    I need s little assistance. Can someone please put on the right path with a small customization I am requesting.

    Thank you and have a fabulous weekend!

    Rgds,
    ILI

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

    Re: Pick Date from Column A instead of current date.

    ILI,

    Give this a try:
    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

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

    Re: Pick Date from Column A instead of current date.

    As always works beautifully. Thanks much Tigeravatar.

    Marking it as solved....with joy

    I do have a small request and need a last bit of input. How do I ensure that the CSV files that get created have a maximum of 100 entries?

    So technically, If I have a file which has 1000 rows that needs to be converted into a CSV file. I need to create 10 files with 100 rows each. The naming convention to have the sequence number (1,2, 3...10) at the end.

    That is all. Very much appreciative of your help and expertise.

    Thanks a lot!

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

    Re: Pick Date from Column A instead of current date.

    Updated code:
    Please Login or Register  to view this content.

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

    Re: Pick Date from Column A instead of current date.

    Works great. Thank you!

    Regards....
    ILI

+ 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