Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: saving file as cell A1 to location other than default

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Calgary
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I borrowed the code for the simple "saveasA1", and put in a different path other than the default location. when i run the marco it is say location not found, etc. Do i have the syntax correct for the network path directory? If so, what else could be stopping the save?

    Public Sub SaveAsA1Again()
    ThisFile = Range("A1").Value
    ActiveWorkbook.SaveAs FileName:="\\cs2data1\eesdwwshared\30Day\" & ThisFile
    End Sub

  2. #2
    New Member
    Join Date
    Feb 2002
    Location
    Washington State
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-02-21 15:35, jpettit wrote:
    I borrowed the code for the simple "saveasA1", and put in a different path other than the default location. when i run the marco it is say location not found, etc. Do i have the syntax correct for the network path directory? If so, what else could be stopping the save?

    Public Sub SaveAsA1Again()
    ThisFile = Range("A1").Value
    ActiveWorkbook.SaveAs FileName:="\cs2data1eesdwwshared30Day" & ThisFile
    End Sub
    try this

    FileName:="\cs2data1eesdwwshared30Day" & ThisFile & ".xls"

    Rick

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Calgary
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    thanks very much...this works

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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