+ Reply to Thread
Results 1 to 8 of 8

clear a dashed line

  1. #1
    Registered User
    Join Date
    09-12-2007
    Posts
    29

    clear a dashed line

    i am close to getting my code complete but have 2 bugs.

    1: can the copied cell dashed lines be cleared after the paste in VBA?
    2: how do i get the Sub to run when cell value changes? it runs fine if i "run" it inside the VB editor.
    Please Login or Register  to view this content.
    thanks
    Last edited by VBA Noob; 09-13-2007 at 08:52 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Slashalot

    Welcome to excelforum

    Please read forum rules & wrap your VBA code

    See links below for rules
    A thread with the rules is also available at the top of each forum

    If you do not understand the VBA code wrap instructions have a look at my last reply in this thread
    http://www.excelforum.com/showthread.php?t=583950
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    09-12-2007
    Posts
    29

    added zipped file

    hopefully some can help as i am way new to excel but here goes:

    this is a dart throw recording sheet. i want to insert a row with the formulas when $E$5 becomes populated with a value. i almost have it complete with a VBA code but it won't activate when the cell ($E$5) changes, however it will work correctly if i populate the cell then "run" the code from the editor.

    can someone help me?

    when i get this problem fixed, i want to utilize an input box for A5, C5, E5 to get the dart throws. but 1 problem at a time.
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Slashalot,

    Your coding is sound. The problem lies in the Data Validation Drop Down. This doesn't trigger any events in VBA eventhough the worksheet has changed. You could use either a Forms Drop Down or a Control Toolbox ComboBox in place of the Data Validation Drop Down. This will require you to write a bit more coding for the control.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    09-12-2007
    Posts
    29
    thankyou much Leith.

    can i control what can be typed into an "input" box and use that for the trigger or does that also have the same problem?



    hmmmm, i tried to force the trigger by removing the validation portion of cell E5 but still no joy.
    Last edited by Slashalot; 09-13-2007 at 01:03 PM.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Slashalot,

    How about I write some code and you can decide if it will work for you?

    Sincerely,
    Leith Ross

  7. #7
    Registered User
    Join Date
    09-12-2007
    Posts
    29
    you are too kind. i would appreciate any help, but i may have may questions.

    this is a learning project i gave myself for my league.

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Slashalot,

    The attached file has the added combo boxes . Have a look a let me know if this will work for you.

    Sincerely,
    Leith Ross
    Attached Files Attached Files

+ 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