×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Copying Dialog Sheets to New Workbook

Copying Dialog Sheets to New Workbook

Copying Dialog Sheets to New Workbook

(OP)
Sometimes our complex workbooks become corrupt and the size increases enormously.  The only solution seems to be to select all sheets and copy to a new workbook, same with macros.

This is painless except for dialog type sheets where the identification number of all objects changes, for example, Edit Box 30 becomes Edit Box 20.  Any VB code referring to these no longer works.  It is tedious to change all numbers and, if an object has visible property set to false, it's almost impossible.

Anyone have any idea how to work around this?

Thanks.

RE: Copying Dialog Sheets to New Workbook

Quite simple I think.

All you have to do is name the Edit Box. e.g. EB1.
When you copy the sheet the name remains the same EB1.

You name the Edit Box by typing over 'Edit Box 30' in the name box.

Hope this helps.

maybe only a drafter
but the best user here!

RE: Copying Dialog Sheets to New Workbook

(OP)
Thanks, onlyadrafter, that is helpful advice.

This is the sort of tip that it would be much better to know before starting all the dialogs and coding the macros!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources