+ Reply to Thread
Results 1 to 5 of 5

Can this macro be written more efficiently?

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Corvallis, OR
    MS-Off Ver
    Excel 2003
    Posts
    17

    Can this macro be written more efficiently?

    I have the following macro:

    Please Login or Register  to view this content.

    I finally got it to do everything I need it to do, but it seems rather crude. My concern is that too many command lines increases the possibility of error.
    If someone could give me some pointers on working with ranges it would be appreciated.
    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,450

    Re: Can this macro be written more efficiently?

    Maybe:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-16-2012
    Location
    Corvallis, OR
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Can this macro be written more efficiently?

    It worked mostly. But I somehow lost the keyboard shortcut Ctrl+u. It works great "running" it from the macro menu.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,450

    Re: Can this macro be written more efficiently?

    Tools | Macro | Macros ... | Select the macro in the dialogue box | Click the options button | pick a short cut combination.


    Regards, TMS

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,450

    Re: Can this macro be written more efficiently?

    You're welcome. Thanks for the rep.

    Solved?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1