A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
ok,
1) Selection as picture in new WB
Sub Selection_AsPicture_NewWB()
'July 10, 2015
Const cel As String = "A1" '<< top left cell
If MsgBox("select a range ?", vbOKCancel) = vbCancel Then Exit Sub
Selection.CopyPicture xlScreen, xlBitmap
Set wb = Workbooks.Add(xlWorksheet)
With ActiveSheet
.Paste Destination:=.Range(cel)
.Range(cel).Select
End With
'wb.Save
End Sub
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
2) Selection as picture in new Worksheet
Sub Selection_AsPicture_NewWS()
'July 10, 2015
Const cel As String = "A1" '<< top left cell
If MsgBox("select a range ?", vbOKCancel) = vbCancel Then Exit Sub
Selection.CopyPicture xlScreen, xlBitmap
Set ws = Sheets.Add(before:=Sheets(1))
With ActiveSheet
.Paste Destination:=.Range(cel)
.Range(cel).Select
End With
ThisWorkbook.Save
End Sub