Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNot able to set header and footer in excel on multiple (even or odd pages) Pin
I_am_nayak16-May-23 19:19
I_am_nayak16-May-23 19:19 
AnswerRe: Not able to set header and footer in excel on multiple (even or odd pages) Pin
David Crow17-May-23 2:23
David Crow17-May-23 2:23 
The (incomplete) for() loop looks a bit odd in that it is using the same values for the header and footer and the set methods are called twice. If you are wanting the header/footer on the even pages to be different than the header/footer on the odd pages then you are going to have to check whether l is odd or even and use a different value accordingly.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


QuestionMessage Closed Pin
14-May-23 13:20
polcott14-May-23 13:20 
AnswerRe: Can D simulated by H terminate normally? Pin
Richard MacCutchan14-May-23 21:39
mveRichard MacCutchan14-May-23 21:39 
AnswerRe: Can D simulated by H terminate normally? Pin
jschell15-May-23 4:58
jschell15-May-23 4:58 
GeneralMessage Closed Pin
15-May-23 8:30
polcott15-May-23 8:30 
GeneralRe: Can D simulated by H terminate normally? Pin
harold aptroot15-May-23 9:20
harold aptroot15-May-23 9:20 
GeneralMessage Closed Pin
15-May-23 9:50
polcott15-May-23 9:50 
GeneralRe: Can D simulated by H terminate normally? Pin
harold aptroot15-May-23 10:03
harold aptroot15-May-23 10:03 
GeneralMessage Closed Pin
16-May-23 4:51
polcott16-May-23 4:51 
GeneralRe: Can D simulated by H terminate normally? Pin
jschell16-May-23 6:41
jschell16-May-23 6:41 
GeneralMessage Closed Pin
18-May-23 4:27
polcott18-May-23 4:27 
GeneralRe: Can D simulated by H terminate normally? Pin
jeron118-May-23 5:03
jeron118-May-23 5:03 
GeneralMessage Closed Pin
18-May-23 5:16
polcott18-May-23 5:16 
GeneralRe: Can D simulated by H terminate normally? Pin
jeron118-May-23 5:22
jeron118-May-23 5:22 
GeneralMessage Closed Pin
18-May-23 5:51
polcott18-May-23 5:51 
GeneralRe: Can D simulated by H terminate normally? Pin
jeron118-May-23 6:07
jeron118-May-23 6:07 
GeneralMessage Closed Pin
18-May-23 6:28
polcott18-May-23 6:28 
GeneralRe: Can D simulated by H terminate normally? Pin
jeron118-May-23 6:37
jeron118-May-23 6:37 
GeneralMessage Closed Pin
18-May-23 6:46
polcott18-May-23 6:46 
GeneralRe: Can D simulated by H terminate normally? Pin
jeron118-May-23 6:52
jeron118-May-23 6:52 
GeneralMessage Closed Pin
18-May-23 7:09
polcott18-May-23 7:09 
GeneralRe: Can D simulated by H terminate normally? Pin
jeron118-May-23 7:29
jeron118-May-23 7:29 
GeneralMessage Closed Pin
18-May-23 7:37
polcott18-May-23 7:37 
GeneralRe: Can D simulated by H terminate normally? Pin
jeron118-May-23 7:39
jeron118-May-23 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.