LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 1
Default VBA Help needed

I am trying to set up a macro that will identify if a field has been changed. I need the syntax for how to get this done. Below is the original Macro. I want to see if someone changes a field from the default below. Can someone help?
Thanks in advance,


Sub CEO_OC()
Dim LR As Long
Dim i As Long
LR = Range("D" & Rows.Count).End(xlUp).Row
For i = 2 To LR
If Range("D" & i).Value = "Facility CEO" Then
Range("f" & i).Value = ""
Range("j" & i).Value = "X"
Range("n" & i).Value = ""
Range("r" & i).Value = ""
Range("v" & i).Value = "X"
Range("z" & i).Value = ""
Range("ad" & i).Value = "X"
Range("ah" & i).Value = ""
Range("al" & i).Value = "X"
Range("ap" & i).Value = ""
Range("at" & i).Value = ""
Range("ax" & i).Value = "X"
Range("bb" & i).Value = ""
Range("bf" & i).Value = ""
Range("bj" & i).Value = ""
Range("bn" & i).Value = "X"
Range("br" & i).Value = ""
Range("bu" & i).Value = ""
Range("bz" & i).Value = ""
Range("cd" & i).Value = ""
Range("ch" & i).Value = ""
Range("cl" & i).Value = ""
Range("cp" & i).Value = "X"

End If
Next i
End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Rows With Non-Needed Data between Needed Data Daren Excel Worksheet Functions 2 September 30th 08 06:47 PM
Help needed please TheGodfather[_2_] Excel Discussion (Misc queries) 4 October 28th 07 09:42 PM
If Then help needed RGT New Users to Excel 2 March 18th 05 01:30 AM
Help needed Joydeep das Excel Programming 0 January 29th 04 05:36 AM
xla/xls help needed! MattShoreson[_10_] Excel Programming 1 January 13th 04 09:24 PM


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"