+ Reply to Thread
Results 1 to 3 of 3

using VBA to Save with date to HTTP

  1. #1
    Registered User
    Join Date
    01-16-2013
    Location
    Alaska
    MS-Off Ver
    Excel 2007
    Posts
    54

    using VBA to Save with date to HTTP

    Hello All,

    I am having trouble getting the following code to work with date, if I remove the format date it works great add the date code and it does not work, I do not know if it makes a differance but the is the second save function, please help

    here is my code
    ActiveWorkbook.SaveAs "http://ian-corp/sites/ConstructionManagement/Inspectors%20Report%20Master%20Weekly/2013%20CCONSTRUCTIN%20BACKUP/2013%20CONSTRUCTION%20TRACKER.xls" & Format$(Date, "MMDDYYYY"), FileFormat:=52
    Thanks in advance, Jeff
    Last edited by Jeff up North; 02-27-2013 at 08:02 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: using VBA to Save with date to HTTP

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-16-2013
    Location
    Alaska
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: using VBA to Save with date to HTTP

    Arlu1201,

    I had been working on this for to long took a break and came back and it did not take long as I know I was close here is the working code

    ActiveWorkbook.SaveAs "http://ian-corp/sites/ConstructionManagement/Inspectors%20Report%20Master%20Weekly/2013%20CCONSTRUCTIN%20BACKUP/2013%20CONSTRUCTION%20TRACKER%20BACKUP%20FILE " & Format(Now, "MM-DD-YYYY hh-mm-ss AMPM") & ".xls", FileFormat:=52

+ 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