Consulting

Results 1 to 3 of 3

Thread: Help please

  1. #1

    Help please

    Hi all,
    I need help with a macro which exports one particular sheet of many such
    When I use this macro to exports all sheets

    Sub exportshee()
    
    Dim ws As Worksheet
    
    
    Dim sPath As String, sPathsep As String
    Dim wb As Workbook, FullName As String
    
    
    Set wb = ThisWorkbook
    sPath = wb.Path & "\"
    
    
        FullName = Range("C5")
        FullName = sPath & FullName & ".xls"
        With ActiveWorkbook
            .SaveAs FullName
            .Close False
        End With
        
    
    
    
    End Sub


    does anyone know how to do it?
    Thanks a lot

  2. #2

  3. #3
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    @ Pattyz,

    Please read the FAQ and use the "Thread Tools" button to mark this thread solved
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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