+ Reply to Thread
Results 1 to 6 of 6

Does Excel see a cell w/ formulas as non-empty cell?

  1. #1
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Does Excel see a cell w/ formulas as non-empty cell?

    When using a VBA UserForm to write data to the worksheet....How do you make excel ignore conditional formatting within the cells and see them as blank cells?

    I was using the find last row code and when the useform writes the data it sees any conditional formatting as non-blank cells and writes the data in the rows below.

    How can I force it to write in the cells with conditional formatting in them?

    I will have to post an example tomorrow when I get to work.
    Last edited by romperstomper; 03-23-2011 at 10:12 AM. Reason: mark solved
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Does Excel see a cell w/ conditional formatting as non-empty cell?

    You'd have to post your code. None of the code I use would see a cell with CF on it but nothing in the cell as anything other than empty.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Does Excel see a cell w/ conditional formatting as non-empty cell?

    Please Login or Register  to view this content.
    I mis-spoke lastnight about the formatting, I was trying to put in an "If Then" in the cells were it would write true or false, and I was wanting it to say yes or no...If "true", then "yes", "no"......
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Does Excel see a cell w/ formulas as non-empty cell?

    Although different in approach, your code worked fine for me once I took out the reference to ListBox1 which apparently doesn't exist.

    This is how I would write the same code, small differences.
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Does Excel see a cell w/ formulas as non-empty cell?

    Quote Originally Posted by JBeaucaire View Post
    I took out the reference to ListBox1 which apparently doesn't exist.
    JB, I'm going to study your version for a little bit to see what all you did there....(I'm still learning better ways to do things as I go)


    The ListBox1 was deleted from that userform and placed on a userform by itself to populate a textbox with the selections(concatenated, if the user chooses more than one cause code)

    Yeah, I don't need to set ListBox1 back to null if it doesn't exist...thanks for catching that.

    That was one of my first VBA userform projects....I started out with a doosey for my forst project. It was one of those where I would have never got it to work if it wasn't for this forum and the kind folks here who helped me along.

  6. #6
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Does Excel see a cell w/ formulas as non-empty cell?

    Used the LastRow method shown above, thread is "Solved"

+ 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