Hi,
I’m trying to delete a picture within a certain number of highlighted cells. I’m trying to do this in VBA and every suggested code I’ve tried doesn’t work or requires specific cells to be selected however I’m highlighting the cells via ActiveCell.Offset codes.
The sort of thing I’m after is:
Range(ActiveCell.Offset(0,0),ActiveCell.Offset(5,5)).Select
ActiveSheet.Pictures.Select
Selection.Delete
But this either doesn’t work or highlights and deletes every picture on the Worksheet, however I only require the single picture to be removed from within the highlighted cell range.
Please help!
I’m trying to delete a picture within a certain number of highlighted cells. I’m trying to do this in VBA and every suggested code I’ve tried doesn’t work or requires specific cells to be selected however I’m highlighting the cells via ActiveCell.Offset codes.
The sort of thing I’m after is:
Range(ActiveCell.Offset(0,0),ActiveCell.Offset(5,5)).Select
ActiveSheet.Pictures.Select
Selection.Delete
But this either doesn’t work or highlights and deletes every picture on the Worksheet, however I only require the single picture to be removed from within the highlighted cell range.
Please help!