+ Reply to Thread
Results 1 to 2 of 2

Edit macro to stop filling when data is encountered

  1. #1
    Registered User
    Join Date
    03-27-2019
    Location
    Kentucky USA
    MS-Off Ver
    Office 365
    Posts
    1

    Edit macro to stop filling when data is encountered

    Hi, I run the following macro to automatically fill dates on a certain column and paste the values instead of keeping the formula:

    Please Login or Register  to view this content.
    Basically, it looks for data on column A and fills column D with dates. What I would like to do is to stop filling dates on column D when it encounters data, right now the macro overwrites any data on column D. Here's a brief example of what I would like the macro to do:

    Column A Column D
    1 3/27/19
    2 3/27/19
    3 macro to only fill this cell (blank cell)
    4 macro to only fill this cell (blank cell)
    5 macro to only fill this cell (blank cell)
    6 3/27/19 macro to stop filling this cell and any cell after this, since data is found

    Hope I made myself clear, any help is appreciated.
    Last edited by luisfit; 03-27-2019 at 09:37 AM.

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: Edit macro to stop filling when data is encountered

    This works?

    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)

Similar Threads

  1. vba to stop the macro to edit data in another work book and resume
    By karthikha in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-11-2018, 12:06 PM
  2. how do i stop tables from auto filling?
    By Sezra in forum Excel General
    Replies: 1
    Last Post: 12-18-2014, 07:03 PM
  3. Replies: 2
    Last Post: 11-03-2014, 12:06 PM
  4. Macro Help - STop Delete & Edit
    By m_789 in forum Excel General
    Replies: 0
    Last Post: 06-20-2012, 10:40 AM
  5. Macro for all errors encountered
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2011, 05:00 PM
  6. How to stop automatically filling when copying
    By clucas in forum Excel General
    Replies: 3
    Last Post: 02-14-2008, 01:47 PM
  7. Macro to stop Tools, Options, Edit
    By sparx in forum Excel General
    Replies: 0
    Last Post: 05-25-2006, 04:28 PM

Tags for this Thread

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