Results 1 to 8 of 8

Export values range to new spreadsheet

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-03-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    123

    Export values range to new spreadsheet

    Hi there,

    I want a certain range to be exported to a new spreadheet with a macro (the range can be fixed range OR can be selected)

    I have the following,and does work, but the problem is many of the values I am exporting are vlookup values, and then when exporting, it export the vlookup string instead of the value in the cell.
    How can I export only the values to a new spreadsheet?

    Here is what I have:

    Sub IssueRegister_Rectangle6_Click()
      '
         ' export Macro
         
        Range("C9:L60").Select
        Selection.Copy
        Workbooks.Add
        ActiveSheet.Paste
        ActiveWorkbook.SaveAs Filename:= _
        "C:\Documents and Settings\Issue Register.csv" _
        , FileFormat:=xlCSV, CreateBackup:=False
        Application.DisplayAlerts = False
        ActiveWorkbook.Close
        Application.DisplayAlerts = True
    End Sub
    Thank you so long,

    Jakes
    Last edited by Jakes; 01-27-2012 at 05:38 AM.

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