Results 1 to 4 of 4

VBA to change value only when between two other values

Threaded View

brianfromla VBA to change value only when... 10-25-2016, 09:09 AM
Olly Re: VBA to change value only... 10-25-2016, 09:14 AM
StephenR Re: VBA to change value only... 10-25-2016, 09:21 AM
Arkadi Re: VBA to change value only... 10-25-2016, 09:24 AM
  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Shreveport, LA, USA
    MS-Off Ver
    Office 2013
    Posts
    63

    VBA to change value only when between two other values

    I have over 5,000 lines of data, and I will have the following scenario occur many times throughout:

    SG EOS
    SG
    TOE OF DITCH

    When the above 3 values display in 3 different cells grouped together like this, I need to change the value in the cell that just says SG to say DAYLIGHT. I'm needing VBA that will go through all 5,000+ lines of data and change these values.

    I used to have something similar that I thought I would be able to change to work, but I can't find it and I could definitely use help with it.

    Attached is a snip from the Excel file showing one of these areas circled.

    Capture2.PNG

    Thank you.

    Edit: I guess the image isn't showing up...
    Last edited by brianfromla; 10-25-2016 at 09:10 AM. Reason: Image not showing up

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro - To change cell fonts whenever their values change
    By mgs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2012, 03:14 AM
  2. [SOLVED] Macro - To change fonts when their values change
    By mgs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2012, 12:47 PM
  3. Replies: 3
    Last Post: 06-08-2012, 10:17 PM
  4. Replies: 9
    Last Post: 10-31-2011, 03:56 PM
  5. Change Values in Textbox to Change Cell Value
    By imav in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2011, 11:49 AM
  6. Replies: 2
    Last Post: 06-15-2009, 05:31 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