+ Reply to Thread
Results 1 to 4 of 4

Need help cleanup vb code.. Some errors!

  1. #1
    Registered User
    Join Date
    03-30-2007
    Posts
    2

    Question Need help cleanup vb code.. Some errors!

    Hey All,

    So I made this bit of code. Pretty much the purpose is to timestamp as the phases of a project change. (Column G has a set of drop down boxes to choose from). However, I'm facing issues. Such as if you try to delete multiple rows it gives debug errors, and also inserting rows is blanked out. Not sure what all I can do to clean this code up to stop these errors.

    Any help would be greatly appreciated!

    Please Login or Register  to view this content.
    Last edited by vexious; 03-09-2012 at 01:41 PM.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Need help cleanup vb code.. Some errors!

    Try adding a check to make sure only once cell is selected:

    Please Login or Register  to view this content.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    03-30-2007
    Posts
    2

    Re: Need help cleanup vb code.. Some errors!

    Ok that seemed to get rid of the debug errors, for some reason I can't right click and insert new rows inbetween rows for some reason.. any ideas? Also any suggestions to improve the code anymore?

    Cheers!!

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Need help cleanup vb code.. Some errors!

    i would use a select/case instead of the IF's but im not sure why you are havin gissues inserting a new row

    Please Login or Register  to view this content.

+ 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