C
chuck
Hi ther
I'm trying to write a sub that will go through all the footers in a document looking for frames that contain date fields, then delete those frames only. The sub needs to be able loop through multiple sections, some with different first page footers
I understand looping -- but I'm having trouble getting my head around how to efficiently find and delete only the frames that contain date fields (I can find and delete both frames and fields separately)
Would it be best to search for date fields and then test to see if they're contained in frames? If so, what is the property I should identify/test for? Testing for the "Parent" of the field seems to return "Document"
Or should I loop through the frames in each footer, search within the frames for date fields, and if found, then select and delete the frame? If so, any tips on what the best way to do that might be
Any help greatly appreciated
Chuck
I'm trying to write a sub that will go through all the footers in a document looking for frames that contain date fields, then delete those frames only. The sub needs to be able loop through multiple sections, some with different first page footers
I understand looping -- but I'm having trouble getting my head around how to efficiently find and delete only the frames that contain date fields (I can find and delete both frames and fields separately)
Would it be best to search for date fields and then test to see if they're contained in frames? If so, what is the property I should identify/test for? Testing for the "Parent" of the field seems to return "Document"
Or should I loop through the frames in each footer, search within the frames for date fields, and if found, then select and delete the frame? If so, any tips on what the best way to do that might be
Any help greatly appreciated
Chuck