Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default delete pictures

Hi,

I have a source table, with staff information. I have a client-side table
that copies all the cells from it. (link not possible, because formatting is
important) The job is done by a macro that looks like:
....
Workbooks(ForrasFile).Worksheets(ForrasMunkalap).C ells.Copy
Workbooks(CelFile).Worksheets("linked").Cells
....
Unfortunately there's an embedded picture in the source doc, that also comes
to the client. The problem is that this happenes every time... I don't want
to have this pic 1000 times on my sheet after a week :)
How can I prevent this happen, or if not possible, how can I remove this
unwanted image? If easier, all pictures on the sheet?

Thanks,
Marton


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default delete pictures

VilMarci,

Try adding the following code line to your program:

ActiveSheet.DrawingObjects.Delete

It should remove every graphical object on the sheet.

HTH

"VilMarci" wrote:

Hi,

I have a source table, with staff information. I have a client-side table
that copies all the cells from it. (link not possible, because formatting is
important) The job is done by a macro that looks like:
....
Workbooks(ForrasFile).Worksheets(ForrasMunkalap).C ells.Copy
Workbooks(CelFile).Worksheets("linked").Cells
....
Unfortunately there's an embedded picture in the source doc, that also comes
to the client. The problem is that this happenes every time... I don't want
to have this pic 1000 times on my sheet after a week :)
How can I prevent this happen, or if not possible, how can I remove this
unwanted image? If easier, all pictures on the sheet?

Thanks,
Marton



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default delete pictures

Thanks,

I'll try this one also, looks easier than the one I got from an other forum:

For Each kepek In Workbooks(CelFile).Worksheets("linked").Shapes
kepek.Delete
Next

Marton

"quartz" wrote in message
...
VilMarci,

Try adding the following code line to your program:

ActiveSheet.DrawingObjects.Delete

It should remove every graphical object on the sheet.

HTH

"VilMarci" wrote:

Hi,

I have a source table, with staff information. I have a client-side

table
that copies all the cells from it. (link not possible, because

formatting is
important) The job is done by a macro that looks like:
....
Workbooks(ForrasFile).Worksheets(ForrasMunkalap).C ells.Copy
Workbooks(CelFile).Worksheets("linked").Cells
....
Unfortunately there's an embedded picture in the source doc, that also

comes
to the client. The problem is that this happenes every time... I don't

want
to have this pic 1000 times on my sheet after a week :)
How can I prevent this happen, or if not possible, how can I remove this
unwanted image? If easier, all pictures on the sheet?

Thanks,
Marton





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
Add and delete pictures and shapes jlclyde Excel Discussion (Misc queries) 2 October 22nd 08 02:54 PM
Delete Multiple Pictures Supe Excel Discussion (Misc queries) 3 April 9th 07 07:00 PM
Delete pictures in spreadsheet seedman Excel Discussion (Misc queries) 4 July 30th 06 04:21 PM
delete pictures with a macro Noel Rietman Excel Discussion (Misc queries) 1 March 20th 06 04:43 PM
Macro to delete pictures ? Steve Excel Worksheet Functions 8 October 18th 05 10:09 PM


All times are GMT +1. The time now is 08:37 AM.

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"