View Single Post
 
Old 10-09-2015, 12:04 AM
mhagi mhagi is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Oct 2015
Posts: 8
mhagi is on a distinguished road
Default selecting shape in header only

Hi,

thanks for your answer. Could you give me a hint, how to address a shape anchored to a specific paragraph with a specific format.

Aim of the macro is
a) to insert Company logo in Header (and footer) if printing in pdf
b) delete/hide logos in Header and footer if printing on Company paper
and this thru all sections with different page layout and whatever.
And - there could be additional shapes if users include 3rd Party logos in documents and those not be deleted at all.

I could go thru all the shapes and identify my search object(s) by height or width, but was looking for an easier solution.

I'm not really THE vba expert and lazy as hell - always hoping WWW has a solution i can understand ("dim objects" are the high of my know how, so nothing above that!).

And I hoped it would be possible to only work with headers or footers. Now I have to look at both and I'm afraid, this will slow the macro down a lot.

Thanks nonetheless
Reply With Quote