Hi,
On a worksheet I have Headings A B C D, sometimes one of the headings will be missing so it might be A C D. I want to write some VB code to say if one of the headings is missing insert a new column. (taking into account there will be data under each heading.
Is is possible to write in VB the following statement ?
If active cell = A, then offset right, else insert column. then offset cell right,
then run it again for B, C, D ect..??
(Sorry my IF statements are rubbish !)
Thanks
Dan
On a worksheet I have Headings A B C D, sometimes one of the headings will be missing so it might be A C D. I want to write some VB code to say if one of the headings is missing insert a new column. (taking into account there will be data under each heading.
Is is possible to write in VB the following statement ?
If active cell = A, then offset right, else insert column. then offset cell right,
then run it again for B, C, D ect..??
(Sorry my IF statements are rubbish !)
Thanks
Dan