HI All,
I am having a little problem and need some help from the experts. I have a workbook that contains one tab for data and two additional tabs for reports. Within the report tabs are check boxes. I am trying to create a macro that would allow the user the option to save an individual report to a new workbook without the formula references to the previous "data" tab. Basically, copying and pasting Values and Number formats only. The problem I am encountering is that 1) I am too inept at VBA to write the macro myself (at the moment, but learning!) 2) when I try to record a macro to perform the process, the check boxes in the report and the original workbook all of a sardine show their default text, which need to be completely blank.
I have copied and pasted the code "recorded". Can anyone help? As you can see, I am just selecting the tab, copying it to a new workbook, copying the range of cells containing the report, and pasting as values and number formats. I know there is a more efficient way to do this....
Sub saveSF425()
'
' saveSF425 Macro
'
'
Sheets("SF425").Select
ActiveSheet.CheckBoxes.Add(569.25, 243, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(621, 242.25, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 199.5, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 213.75, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 228, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 243, 24, 17.25).Select
Sheets("SF425").Copy
Range("A1:L62").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
I am having a little problem and need some help from the experts. I have a workbook that contains one tab for data and two additional tabs for reports. Within the report tabs are check boxes. I am trying to create a macro that would allow the user the option to save an individual report to a new workbook without the formula references to the previous "data" tab. Basically, copying and pasting Values and Number formats only. The problem I am encountering is that 1) I am too inept at VBA to write the macro myself (at the moment, but learning!) 2) when I try to record a macro to perform the process, the check boxes in the report and the original workbook all of a sardine show their default text, which need to be completely blank.
I have copied and pasted the code "recorded". Can anyone help? As you can see, I am just selecting the tab, copying it to a new workbook, copying the range of cells containing the report, and pasting as values and number formats. I know there is a more efficient way to do this....
Sub saveSF425()
'
' saveSF425 Macro
'
'
Sheets("SF425").Select
ActiveSheet.CheckBoxes.Add(569.25, 243, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(621, 242.25, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 199.5, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 213.75, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 228, 24, 17.25).Select
ActiveSheet.CheckBoxes.Add(484.5, 243, 24, 17.25).Select
Sheets("SF425").Copy
Range("A1:L62").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End Sub