I have a spreadsheet that has a data input section at the top and a "Results" table at the bottom that uses the input data to calculate various estimates.
I want to create Command Button that will allow the user to Save ONLY the "Results" data range to a new file, with the file name derived from a input field.
I am using this code (which works), but this saves the entire workbook instead of just the selected range. I have thought of separating the Input and Results on separate tabs but it doesn't appear that you can save individual tabs either? Any ideas? Thanks much!
I want to create Command Button that will allow the user to Save ONLY the "Results" data range to a new file, with the file name derived from a input field.
I am using this code (which works), but this saves the entire workbook instead of just the selected range. I have thought of separating the Input and Results on separate tabs but it doesn't appear that you can save individual tabs either? Any ideas? Thanks much!
Code:
Private Sub CommandButton1_Click()
ActiveWorksheet.SaveCopyAs "C:\Documents and Settings\Terry\" & Sheet1.Cells(16, 2) & ".XLS"
End Sub