+ Reply to Thread
Results 1 to 8 of 8

cells with formulas vb

  1. #1
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    cells with formulas vb

    I'm having trouble getting my vb to look at a cell in column"D" and if empty, populate it with a date/time stamp. The cells in "D" have a formula in it to populate with "N/A" if certain criteria are met and blank if not. The vb works great in cells "E" and "F", which have no formual, just not in "D". I suspect it has something to do with the formula being in the cell, or I'm missing something in the activecell statements in my vb below. I have added an attachment of my spreadsheet as well. Your assistance is always appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by arlu1201; 12-19-2013 at 10:58 AM. Reason: Corrected code tags.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: cells with formulas vb

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: cells with formulas vb

    Please accept my sincere apology for the error.

    Please Login or Register  to view this content.
    Last edited by rkovsonic; 11-22-2013 at 07:36 AM.

  4. #4
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: cells with formulas vb

    The code tags should be correct now.

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: cells with formulas vb

    Only tested basically, but try this

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: cells with formulas vb

    Unfortunately, that's not it. When tested it goes to "B".
    A, B, & C are autopopulated upon entry of a serial number in "A". I want my vb to look at "D" and if "D" contains "N/A" then skip it and populate "E" with the date/time stamp, and if already populated, move to and populate "F". The idea is to have the vb date/time stamp 1 cell on each successive run of the vb for a specific serial number. Possibly "D" if not "N/A" or "E" if it is on one run, "E" if "D" already has a date/time stamp on a nother run, and "F" if "E" already has the date/time stamp applied. Your time and knowledge are much appreciated.

  7. #7
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: cells with formulas vb

    I think we need to see your workbook then.

  8. #8
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: cells with formulas vb

    see attached
    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)

Similar Threads

  1. Insert cells, fill formulas down, set formulas for dynamic range
    By Snickers65 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 01:43 PM
  2. Replies: 5
    Last Post: 01-31-2013, 12:55 PM
  3. Replies: 5
    Last Post: 11-03-2012, 05:10 PM
  4. [SOLVED] Question About Using Cells in Formulas that Contain Formulas Themselves
    By Kerry F in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2012, 07:10 PM
  5. AdvancedFilter on cells with formulas, returning values and not formulas
    By Claus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2005, 03:05 PM

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