+ Reply to Thread
Results 1 to 3 of 3

ActiveWorkbook.SaveAs

  1. #1
    Registered User
    Join Date
    08-31-2006
    Posts
    15

    ActiveWorkbook.SaveAs

    Hi,

    The error is:
    Wrong number of arguments or invalid property assignment
    It seems the format code is wrong?

    What is wrong with this code please?

    ActiveWorkbook.SaveAs Filename:= _

    "G:\MarketRisk\DailyReport\GlobalMarketsRiskReport" & Format(Range("ReportDate").Value, "ddmmyyyy") & "xls", _

    FileFormat:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Please take a couple of minutes to read the forum rules & wrap your VBA code

    See link below for forum rules

    To wrap you Vba code use the # icon
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I can see nothing wrong with your code aslong as the named range is on the activesheet. The range is a single cell and contains a date. The path listed is a valid path

+ 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