+ Reply to Thread
Results 1 to 9 of 9

Button to insert new row to remove fill of certain cell?

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    sdsada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Button to insert new row to remove fill of certain cell?

    Hello,
    I have a button that inserts a new row in a big database, clears contents from previous row and in the same time keeps formulas where needed.
    I need to make it to clear the colour of the cell in column F in the new row - to became from yellow or green to No fill.
    Do you have any suggestions?
    here is the code that i have so far:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Button to insert new row to remove fill of certain cell?

    Perhaps something like this?

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-24-2013
    Location
    sdsada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Button to insert new row to remove fill of certain cell?

    thanks for helping but unfortunately this doesn't work. When i click on the button i get "Compile error: Expected end with"

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Button to insert new row to remove fill of certain cell?

    Like this?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-24-2013
    Location
    sdsada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Button to insert new row to remove fill of certain cell?

    like this there isn't any error but it is removing the Fill of the first row and not only in column F but in other columns too.
    I need the button to remove the fill only from the last inserted row and only in the cell in column F

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Button to insert new row to remove fill of certain cell?

    Apologize. I completely missunderstund what you were asking for. So if this one one does not works for you, then i need a sample workbook with your existing code to test it, or else you have to wait for some other member to offer a suggestion for this.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-24-2013
    Location
    sdsada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Button to insert new row to remove fill of certain cell?

    thanks for your help! i managed to fix the last code you gave me. It is working and it looks like this:
    Please Login or Register  to view this content.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Button to insert new row to remove fill of certain cell?

    You are welcome and thanks for the feedback.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Registered User
    Join Date
    10-24-2013
    Location
    sdsada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Button to insert new row to remove fill of certain cell?

    done! thanks once again, you were very kind

+ 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. Replies: 1
    Last Post: 10-15-2013, 01:19 PM
  2. fill/ remove formula based on adjacent cell value
    By sarails in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2011, 10:38 PM
  3. Remove fill on printing - Cell Specific
    By BrianOfNazareth in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2010, 03:40 AM
  4. [SOLVED] Excel 2007 : Remove unwanted cell fill from blank cell
    By tradersteve in forum Excel General
    Replies: 4
    Last Post: 09-21-2010, 03:45 AM
  5. Remove cell fill option
    By Sharp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2008, 11:55 AM

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