Results 1 to 11 of 11

Macro to locate folder in a folder and save

Threaded View

  1. #4
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Macro to locate folder in a folder and save

    ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\st\Desktop\" & Sheets("Sheet1").Cells(5, 4) & ActiveWorkbook.Name
    MsgBox "Saved"
    Is correct..however add "ODF\" to the FILENAME:= line and a "\" before the activeworkbook.name

    so you have

    ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\st\Desktop\ODF\" & Sheets("Sheet1").Cells(5, 4) & "\" & ActiveWorkbook.Name
    MsgBox "Saved"
    This will then save in the ODF folder...and the folder identified by d5
    Last edited by GuruWannaB; 04-13-2009 at 10:38 AM. Reason: updated macro with: "\" &

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