+ Reply to Thread
Results 1 to 5 of 5

adding new case to code

  1. #1
    Forum Contributor
    Join Date
    06-10-2008
    Location
    SW Ontario, Canada
    MS-Off Ver
    Excel 365
    Posts
    154

    adding new case to code

    I'm a newb at vb code and managed to get this macro together.
    But now I have added some to another sheet and need to add this macro in the workbook.
    This is my current code.
    Please Login or Register  to view this content.
    How would I add this one to it? I seem to be getting errors everytime I try.
    Please Login or Register  to view this content.
    thanks

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: adding new case to code

    What are the errors you are getting, that will give you an idea what is wrong.

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: adding new case to code

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Forum Contributor
    Join Date
    06-10-2008
    Location
    SW Ontario, Canada
    MS-Off Ver
    Excel 365
    Posts
    154

    Re: adding new case to code

    Thanks, that seems to be working.
    I should have clarified, that I meant I wasn't really sure how to add it into the original code.
    The Application.EnableEvents=True was what I was missing.

    thanks again

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: adding new case to code

    You're welcome and thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding named range to Select Case
    By lb6067 in forum Excel General
    Replies: 2
    Last Post: 10-03-2016, 02:13 PM
  2. [SOLVED] Case statement code please
    By jayce_sos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-19-2014, 05:00 AM
  3. [SOLVED] Adding extra case to macro...
    By mmcgrail in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-03-2013, 05:36 PM
  4. adding more cases to case statement
    By johnson1421 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:49 AM
  5. [SOLVED] Disregard case in VBA code. (UCase, LCase, Select Case)
    By Orestees in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-07-2012, 12:12 PM
  6. VBA Case Code
    By zit1343 in forum Excel General
    Replies: 2
    Last Post: 08-22-2011, 05:20 PM
  7. VBA Proper Case Code
    By EMoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2005, 04:06 PM

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