Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have 2 wotbook opened...
    via code i want to save in a dir one of tath with:

    Code:
    	'SALVO NELLA DIRECTORY
    	Application.DisplayAlerts = False
    	Workbooks("aaaaaaa.xls").Activate
    	Debug.Print "\\xxxxxxxxx\PUBBLICA\PAC\CONDIVISIONE_DATI\MUTUI_INDIVIDUALS\GESMIN\" & ZONA & "\"
    	Workbooks("aaaaaaa.xls").SaveAs Filename:="\\xxxxxxxxx\PUBBLICA\PAC\CONDIVISIONE_DATI\MUTUI_INDIVIDUALS\GESMIN\" & ZONA & "\"
    	'SALVO NELLA DIRECTORY
    but have a dubt because have error
    note ZONA is a var to define the last dir

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    You must include the new filename in addition to the path in the SaveAs...

    Steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •