+ Reply to Thread
Results 1 to 5 of 5

Having trouble figuring out the difference between two codes that do the same thing

  1. #1
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Having trouble figuring out the difference between two codes that do the same thing

    Hi, so i'm in the process of going over my entire workbook and testing every function out. I noticed that these two command buttons that are supposed to do the same thing, have different formats. Could someone help me understand what the difference is, and if there is one I should be using over the other?


    Please Login or Register  to view this content.


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Having trouble figuring out the difference between two codes that do the same thing

    I think I figured it out. The second code is selecting every occurrence of the combobox value. Not just the specific one selected.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Having trouble figuring out the difference between two codes that do the same thing

    The second code appears to be correct. It loops back ward which is the correct method to delete a row.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Having trouble figuring out the difference between two codes that do the same thing

    they're both correct-they just do different things. since I'm sure they were both questions here the answers should be easily found ;-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Having trouble figuring out the difference between two codes that do the same thing

    Thank you all,

    I'm going to stick with the first code. The second one is deleting multiples which is not what I want it to do!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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