raymond30031
New Member
- Joined
- Jan 19, 2011
- Messages
- 20
Hello,
I have a activeX command button name commandbutton1
When I click on it,
1. it unprotect the sheet
2. shows preview of the chart
3. protect the sheet
Here is the code
The codes work fine, no error occurs, but the odd part is after I exit the preview screen, every command button on that sheet shifts (moves) to a different place. Either they move up, right , left, or down. The point is that it shouldnt move from where I have placed it. Or should it?
Does anyone has any clue?
Thank you
I have a activeX command button name commandbutton1
When I click on it,
1. it unprotect the sheet
2. shows preview of the chart
3. protect the sheet
Here is the code
Code:
Sheet5.Unprotect
Sheet5.ChartObjects("Chart 8").Chart.PrintPreview
Sheet5.Protect
The codes work fine, no error occurs, but the odd part is after I exit the preview screen, every command button on that sheet shifts (moves) to a different place. Either they move up, right , left, or down. The point is that it shouldnt move from where I have placed it. Or should it?
Does anyone has any clue?
Thank you