Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all, I've got an excel spreadsheet that has 10 sheets on it, is
there a script that I can run to delete only the "pictures" on the sheet??I've also got text on the spreadsheet but i dont want that deleted. Can you help out? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello
Sub DeletePics() dim i As Long Dim sh As Shape For i = 1 To Sheets.Count For Each sh In Worksheets(i).Shapes If sh.Type = msoPicture Then sh.Delete Next sh Next i End Sub HTH Cordially Pascal "Gor_yee" a écrit dans le message de news: ... Hi all, I've got an excel spreadsheet that has 10 sheets on it, is there a script that I can run to delete only the "pictures" on the sheet??I've also got text on the spreadsheet but i dont want that deleted. Can you help out? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Oct 29, 9:57 pm, "papou"
wrote: Hello Sub DeletePics() dim i As Long Dim sh As Shape For i = 1 To Sheets.Count For Each sh In Worksheets(i).Shapes If sh.Type = msoPicture Then sh.Delete Hey....just tried it...its fantastic...many thanks... Next sh Next i End Sub HTH Cordially Pascal "Gor_yee" a écrit dans le message de news: . com... Hi all, I've got an excel spreadsheet that has 10 sheets on it, is there a script that I can run to delete only the "pictures" on the sheet??I've also got text on the spreadsheet but i dont want that deleted. Can you help out? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
Deleting Multiple Images | Excel Discussion (Misc queries) | |||
deleting values in a worksheet without deleting the formulas | Excel Worksheet Functions | |||
how prevent formula in cell from deleting when deleting value???? | New Users to Excel | |||
VB script help - please!! | Excel Discussion (Misc queries) |