Results 1 to 4 of 4
  1. #1
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    PERSONAL.XLS (2002)

    Two questions:

    1) My PERSONAL.XLS includes about 15 macros that I've put there over several years. Right now, they are in nine different "modules," and I'd like to consolidate them all into one place. Can I do this by simply cutting and pasting them all into one module?

    2) PERSONAL.XLS also includes a handful of macros that I meant to be in a specific worksheet, but through operator error got put into PERSONAL.XLS instead. I want to put them into their "home" worksheet. Can I do this by cutting and pasting?
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: PERSONAL.XLS (2002)

    Yes (right click the module and chose remove to delete it- you won't need to export), and Yes

    Steve

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: PERSONAL.XLS (2002)

    The reply to both questions is Yes. You can cut an paste code between modules, whether they be in the same workbook or in different ones.

    Warning: if you have assigned a macro to a custom toolbar button or menu item, the assignment includes the name of the workbook that contains the macro. If you move the macro to another workbook, you will probably have to re-assign it (select Tools | Customize..., right-click the toolbar button or menu item, and select Assign Macro... from the context menu.)

    Just for completeness, you can copy an entire module from one workbook to another by dragging and dropping it in the Project Explorer (in the Visual Basic Editor.)

  4. #4
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    Re: PERSONAL.XLS (2002)

    Thanks, guys!
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •