Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've created a macro which, on save, deletes the data-free pages of a
three page form. The problem is that the top of each page contains our company logo as a Word picture. When the macro deletes the extra pages, the Word pictures remain. How can I delete these pictures? Or is there a better way to handle to logo? BrianG *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Brain,
This will delete the pictures, but it also deletes any other Sharp Objects. Sub removePics() For iSheet = 1 To ActiveWorkbook.Sheets.Count Sheets(iSheet).Visible = True Sheets(iSheet).Select i = ActiveSheet.Shapes.Count For j = 1 To i ActiveSheet.Shapes.Item(1).Select Selection.Delete Next j Next iSheet End Sub -----Original Message----- I've created a macro which, on save, deletes the data- free pages of a three page form. The problem is that the top of each page contains our company logo as a Word picture. When the macro deletes the extra pages, the Word pictures remain. How can I delete these pictures? Or is there a better way to handle to logo? BrianG *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I can't delete a picture | Excel Discussion (Misc queries) | |||
Macro to delete various pictures and hyper-link picture icons | Excel Worksheet Functions | |||
delete picture with macro | Excel Discussion (Misc queries) | |||
DELETE A PICTURE | Excel Discussion (Misc queries) | |||
delete row contains specific word in an macro | Excel Discussion (Misc queries) |