Hi, I tried something like:
but it's wrong.Please Login or Register to view this content.
What's the right way to delete a (all) page(s)?
Hi, I tried something like:
but it's wrong.Please Login or Register to view this content.
What's the right way to delete a (all) page(s)?
Last edited by marlonsaveri; 05-25-2011 at 08:04 PM.
Either loop backwards, or
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
Thanks, but It also didn't run. Error 5
nor:
Please Login or Register to view this content.
Nor:
Please Login or Register to view this content.
You can only remove controls (Pages) added at run-time, not design time.
This was wrong (my bad):
The first element of the Pages collection is 0, not 1.Please Login or Register to view this content.
Hello marlonsaveri,
Are you executing the macro from a VBA module or the UserForm?
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Thanks shg and Leith (in a Userform)
Now I think we solved the problem with:
For example, if we had 2 pages: j = 2, but, as shg said, the first one is 0. Then, g begins in 0 and goes until j-1 = 1 (del page 0 and page1)Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks