+ Reply to Thread
Results 1 to 2 of 2

Combine 2 sets of code

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Combine 2 sets of code

    Dear all,

    i have two different groups of coding, both of which work perfectly by themselves however i am unable to get them to both work side by side.

    The first set was written by someone who knew what they were doing, the second set was scrabbled together with what help i could find from Google (so it probably isnt the best way it could be done)

    With your infinitely greater knowledge of VBA, can anybody assist me with combining the following two sets of code correctly?

    Please be gentle




    First set:
    Please Login or Register  to view this content.
    -------------------------------------------------------

    Second set:


    Please Login or Register  to view this content.
    Last edited by arlu1201; 04-11-2012 at 08:32 AM. Reason: Please put code tags in future.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Combine 2 sets of code

    If you take out all the lines that start with "Application.EnableEvents" in the first block of code then that should be it.

    Edited to add: If you put an apostrophe at the start of those lines it will comment them out - that might be easier.

+ 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