C
callbr549
I wanted to write a macro that would put a certain custom footer on either a
worksheet or a chart. I discovered that what I recorded for one wouldn't work
for the other. I thought I would go into VBA and edit the sub to do one thing
if a chart was active and another if a worksheet was active, but I can't
figure out how to use VBA to determine what type of object is active. Its
probably simple, but I haven't found it yet.
worksheet or a chart. I discovered that what I recorded for one wouldn't work
for the other. I thought I would go into VBA and edit the sub to do one thing
if a chart was active and another if a worksheet was active, but I can't
figure out how to use VBA to determine what type of object is active. Its
probably simple, but I haven't found it yet.