Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default delete word picture with macro?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default delete word picture with macro?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't delete a picture Cerberus Excel Discussion (Misc queries) 5 October 25th 08 04:54 AM
Macro to delete various pictures and hyper-link picture icons Steve Excel Worksheet Functions 13 December 5th 06 09:39 PM
delete picture with macro Steve Excel Discussion (Misc queries) 1 March 16th 06 10:12 PM
DELETE A PICTURE TUNGANA KURMA RAJU Excel Discussion (Misc queries) 4 November 24th 05 12:19 PM
delete row contains specific word in an macro Jean-Francois Excel Discussion (Misc queries) 4 January 11th 05 11:40 PM


All times are GMT +1. The time now is 06:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"