jocker_boy
Board Regular
- Joined
- Feb 5, 2015
- Messages
- 83
Hello,
I have this codes:
I would like to do this:
Run "John"
Create new workbook and add sheet "John" and paste what was copied
Run "Miranda"
Add sheet "Miranda" in workbook already created and paste what was copied
Save the new workbook in specified path.
Thanks for the help.
Gonçalo
I have this codes:
VBA Code:
Sub John()
ActiveSheet.Range("$A$1:$G$9").AutoFilter Field:=4, Criteria1:="John"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
End Sub
Sub Miranda()
ActiveSheet.Range("$A$1:$G$9").AutoFilter Field:=4, Criteria1:="Miranda"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
End Sub
I would like to do this:
Run "John"
Create new workbook and add sheet "John" and paste what was copied
Run "Miranda"
Add sheet "Miranda" in workbook already created and paste what was copied
Save the new workbook in specified path.
Thanks for the help.
Gonçalo