+ Reply to Thread
Results 1 to 3 of 3

issues with coding problem

Hybrid View

  1. #1
    Registered User
    Join Date
    02-26-2006
    Posts
    68

    issues with coding problem

    I am trying to save this file but I'm having problems with "my Name" This information is in a workbook that is already opened called "Recaps" and the sheetname is "Data" and the value I am looking for is in "$C$5". I open another workbook called "Spare" and want to rename and save it to the code below.

    How can I correct this error?


    Dim myPath$, myName$ 
    Application.DisplayAlerts = False 
    myPath = "C:\Service Recaps\John Mudaro\" 
    myName = Sheets("Data").Range("C5").Value 
    ActiveWorkbook.SaveAs myPath & myName 
    Application.DisplayAlerts = True

  2. #2
    Registered User
    Join Date
    02-26-2006
    Posts
    68
    this did not work, any other suggestions?

    Thanks in advance

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Does the following help ...

    ActiveWorkbook.SaveAs Filename:=myPath & myName & ".xls"
    HTH
    Carim

+ 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