+ Reply to Thread
Results 1 to 4 of 4

VBA Upgrade; Add folder browse & date/time & filename stamp

  1. #1
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    VBA Upgrade; Add folder browse & date/time & filename stamp

    Okay I have a functional VBA script, however I do have a need for it to have additional features, which is based on who my users are now for this file. As a result, this functionality is rather important.

    1. I would like to be able to change the hard coded folder path within this VBA to allow the user to browse for a folder.
    2. I would like to be able to add the date/time stamp to Column Q, and the Filename to column R. These would be contigent on the fact that there is data in column A. And that data was added from the merge done by this macro.

    Please Login or Register  to view this content.
    ~*~ Sherry ~*~
    Poinciana, FL

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VBA Upgrade; Add folder browse & date/time & filename stamp

    For part 1 replace the line starting
    Please Login or Register  to view this content.
    with the following:
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: VBA Upgrade; Add folder browse & date/time & filename stamp

    pjwhitfield-----

    I edited the Code per your instructions. A prompt appear allowing me to browse for a folder, which I did (wonderful), then is where we have the issue. A new blank (as in no content) file appeared. the file name and tab are both named "sheet1". This is NOT a file within the folder. In addition, the macro did not finish to summarize the folder conents... which I already know it is capable of doing. Any ideas on how to fix that part?
    Last edited by Webbers; 09-23-2015 at 01:03 PM.

  4. #4
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: VBA Upgrade; Add folder browse & date/time & filename stamp

    My Code looks like this now, with the addition you had me make PJ. However, I do not understand what is happening with the opening of this NEW balnk worksheet and the macro now running at all.

    Please Login or Register  to view this content.

+ 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] Convert Unix Date-time stamp to excel date and/or time columns
    By judikz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2015, 05:46 PM
  2. Renaming all FileName in an Folder using Macro at a time with Different Names
    By Karthik@1305 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2014, 06:14 AM
  3. [SOLVED] Import file(s) from a folder (and include a time stamp)
    By foxy_420 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-25-2013, 11:29 AM
  4. Excel 2007 VBA - "Suggest" Filename with Time Stamp?
    By Tomkat in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-11-2013, 03:21 PM
  5. Save as CSV to specific folder on desktop and current date as filename
    By stokiejames09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2013, 05:52 PM
  6. [SOLVED] Extract a time from a cell with date and time stamp and then perform calculations
    By Marcos Aristotelous in forum Excel General
    Replies: 3
    Last Post: 10-31-2012, 04:36 AM
  7. Code to create a custom .csv filename with version stamp in filename
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-10-2012, 04:07 AM

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