Macro Help Pleaseee...

bulldaddy1

New Member
Joined
Aug 25, 2009
Messages
39
Good morning!

Can anyone please help me with a Macro that will format a border (one single dark line on the bottom of each cell) everytime there is a change in the cell value.

Thank you very much for your help!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
You mean something like this?

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    With Target.Borders(xlEdgeBottom)
        .LineStyle = xlContinuous
        .Weight = xlThick
    End With
End Sub
 
Upvote 0
Private Sub Worksheet_Change(ByVal Target As Range)
Target.Borders(xlEdgeBottom).LineStyle = xlContinuous
End Sub
 
Upvote 0
Thanks a lot for the reply people!!!!

As you could probably tell, I know NOTHING about macros...so do I just copy and paste the marco into my spreadsheet, or do I have to name it first.

Thanks a lot for your help!
 
Upvote 0
Right-click on the sheet tab, and select the view code option.

In the window that opens change the options to "Worksheet" and "Change".

Then paste the code between the Private Sub and End Sub lines
 
Upvote 0
This Monday is turning out to be okay! I think I am almost there...but perhaps I didnt fully explain my request for help.

lets say I have data in column A...and the first five rows equal "1", then in cell A:6 the value changes to 2". I would like the cell format to reflect a dark like between the cells where the values changed.

thank you for your patience.
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top