D
davidd31415
I am hoping someone can recommend a solution for a time-consuming
problem that I run into often.
I create and modify Excel sheets that are used to record data on a
regular basis. Often the modifications done to these sheets require
adding or deleting rows and cells in the middle of the sheet (the upper
and lower portions are headers with fields and borders, and con not
simply be entered in as headers/footers. Herein lies my problem: when
adding, removing, and resizing columns in the middle of the sheet the
upper and lower portions of the sheet become distorted. I usually end
up un-merging, clearing all borders, moving text to the left or right,
re-merging, and wasting a lot of time making the header span across the
page similar to how it did in the first place.
I have tried some custom VBA code to produce these sheets as well as
just typing in the upper and lower portions of the sheets as well, but
each ends up having its disadvantages. The VBA programs I have written
are not quite flexible enough to accommodate all the different sheets
that I need to generate (many are one-timers or are unique) and typing
everything in is mundane and time consuming. I have been considering
writing a VBA program that will simply take a sheet and add the upper
and lower portions in, but before I do so I would like to see if I can
find anyone else who has dealt with similar problems and see how they
solved them.
If anyone has recommendations on how to deal with this issue, I would
appreciate reading them!
Thanks,
David.
problem that I run into often.
I create and modify Excel sheets that are used to record data on a
regular basis. Often the modifications done to these sheets require
adding or deleting rows and cells in the middle of the sheet (the upper
and lower portions are headers with fields and borders, and con not
simply be entered in as headers/footers. Herein lies my problem: when
adding, removing, and resizing columns in the middle of the sheet the
upper and lower portions of the sheet become distorted. I usually end
up un-merging, clearing all borders, moving text to the left or right,
re-merging, and wasting a lot of time making the header span across the
page similar to how it did in the first place.
I have tried some custom VBA code to produce these sheets as well as
just typing in the upper and lower portions of the sheets as well, but
each ends up having its disadvantages. The VBA programs I have written
are not quite flexible enough to accommodate all the different sheets
that I need to generate (many are one-timers or are unique) and typing
everything in is mundane and time consuming. I have been considering
writing a VBA program that will simply take a sheet and add the upper
and lower portions in, but before I do so I would like to see if I can
find anyone else who has dealt with similar problems and see how they
solved them.
If anyone has recommendations on how to deal with this issue, I would
appreciate reading them!
Thanks,
David.