I want to set Excel's header to be a set range e.g. a1:i2 using VBA and apply it across dozens of sheets where the values of a1:i2 are different.
1. What's the right syntax? I'm trying what I though should work and it doesn't (I'm automating from VFP).
2. When doing this manually from the pagesetup sheet tab, if multiple sheets are selected, the printrange and header range textboxes are disabled. Is this by design of a result of a funky Excel install?
3. I'm thinking that my code, which as a mention, looks like it should work, may be getting rejected due to whatever is causing the textboxes to be disabled. If this is by design, under what conditions are they enabled?
Thanks,
Brian
1. What's the right syntax? I'm trying what I though should work and it doesn't (I'm automating from VFP).
2. When doing this manually from the pagesetup sheet tab, if multiple sheets are selected, the printrange and header range textboxes are disabled. Is this by design of a result of a funky Excel install?
3. I'm thinking that my code, which as a mention, looks like it should work, may be getting rejected due to whatever is causing the textboxes to be disabled. If this is by design, under what conditions are they enabled?
Thanks,
Brian