Results 1 to 8 of 8

Thread: Save Excel 2010 File In CSV Format VBA

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    15
    Please download below file with the solution.

    SaveDataAsCSV.xlsm

    Change code accordingly.

  2. #2
    Junior Member
    Join Date
    Dec 2012
    Posts
    16
    Rep Power
    0
    Thanks For your help .. but i need to do some changes. i need to put only Name .. Select Range option Should be in VBA Code Eg A1:C20 no need to prompt msg Box to Select Range

  3. #3
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    15
    Replace previous GetData Procedure with this one

    Code:
    Sub GetData()
    
        Dim rngDataRange                As Range
        
        Set rngDataRange = ActiveSheet.Range("A1:C20")
        
        If Not rngDataRange Is Nothing and rngDataRange.Rows.Count > 0 Then
            DataSaveAs rngDataRange, XL_CSV
        End If
        
        Set rngDataRange = Nothing
         
    End Sub

    Change Range accordingly.

Similar Threads

  1. Save Worksheets As New File To Specific Folder
    By k0st4din in forum Excel Help
    Replies: 18
    Last Post: 06-08-2013, 04:24 PM
  2. Importing a csv File to a range
    By SDruley in forum Excel Help
    Replies: 21
    Last Post: 11-20-2012, 04:54 PM
  3. Replies: 12
    Last Post: 08-19-2012, 06:17 PM
  4. Add ribbon programmatically to Excel 2010 using VBA
    By heapifyman in forum Excel Ribbon and Add-Ins
    Replies: 6
    Last Post: 07-18-2011, 09:16 PM
  5. Save File In CSV Format VBA
    By Raj Kumar in forum Excel Help
    Replies: 3
    Last Post: 06-01-2011, 07:22 AM

Posting Permissions

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