Change Comment Line Color

Feb 12, 2012

The comment lines in Exel VBA editor is green by default, is it possible to change the color?

View 2 Replies


ADVERTISEMENT

Search Unopen Sheet For Value / Change Color Of Line / Copy Line Paste?

Nov 17, 2012

Our small family business has a mailing campaign that we track with excel. However, we're very concerned about users opening the macro-filled master spreadsheet. Instead, we'd like a macro to do everything for them.

When a letter comes back in the mail with a bad address, the user types the Street number and street name such as "1234 Main St" into $A2 of c:dropbox eturned.xlsm, presses the macro button, and it should do the following:

Opens and Searches "Sheet1", "column S", in the file c:dropboxmaster1.xlsm, and finds the LAST instance of the address typed.Selects that entire rowCopies the entire row.Pastes the contents into the row of the active cell in the destination spreadsheet, overwriting what was there before. Such as $2:$2 if the address was typed in $A2.In the master1.xlsm spreadsheet, sets the entire copied row color to "gray".closes master1.xlsm and saves changes.

The end result is that the user now has an identical row of information in their spreadsheet, and the master spreadsheet's row is colored gray indicating it has been completed.

Other notes:I'm open to more efficient steps than this if you have them.There are approx 5,000 records to search through in master1.xlsx at any given time.

View 5 Replies View Related

If Line Ends In Assigned Value Then Change Item In COMMENT.

May 22, 2006

I have an Excel file with text records, 1000s of lines long Trancriptions of Customer sales reps and Customers, or Distributors. All data is in Collum A.

Each Record has 7-10 Entries
______________________
BILLNUM : 060501
ORIG : 12345678909090
REP : 45672222222222
AREA : LK787878000000
SD : 060401
ED : 062025
COMMENT : CUSOMTER CONVERVERSATION WITH REP
C:HELLO
R:HELLO
C:MAY I HELP YOU
R:BALANCE PLEASE
etc......................

View 3 Replies View Related

Change Color Of Comment Icon

Apr 22, 2014

I want to know if we can change the color of the comment icon (when we add comment for a cell it gives a triangle form in red) can we change the color.

View 3 Replies View Related

Change The Color Of The Comment Indicators

May 11, 2006

how I can change the color of the comment indicators in an
Excel spreadsheet so I can tell who wrote the comment. This would help me and
my secretary to be able to do our work and be able to tell who's comment it
is. We are in different lacation and can't always talk to each other on the
spur of the moment. If we can change the color of the comment indicator then
it would be simple to be able to see at a glance who's comment it is.

View 14 Replies View Related

Change Line Border Color Of Shape

Sep 21, 2007

I have this simple code which sets the objects format as default.

Private Sub FormatTextBox()
ActiveSheet.Shapes("FormatBox").Select
Selection.ShapeRange.SetShapesDefaultProperties
End Sub

Is there a way to set an objects shape to the default format...not as default?

ie: if the default line color is blue. what code could i use to set an object with a black line color, to the default blue?

View 3 Replies View Related

How To Change PowerPoint Textbox Line Color Using Excel VBA

Mar 7, 2014

I've created a powerpoint with a number of slides, and I need to put a textbox at the bottom. I want to change the colour of the textbox border colour.

Code:
For intCount = 1 To 5
Set tmpTxtBox = pptApp.ActivePresentation.Slides(intCount).Shapes.AddTextbox(Orientation:=msoTextOrientationHorizontal, Left:=120, Top:=500, Width:=500, Height:=100).TextFrame.TextRange
tmpTxtBox.Text = strTolerance
tmpTxtBox.Font.Name = "Arial"
tmpTxtBox.Font.Size = 12
tmpTxtBox.Font.Size = 12
tmpTxtBox.ParagraphFormat.Alignment = ppAlignCenter
' ??? tmpTxtBox.Line.ForeColor = RGB(255, 0, 0)
Next intCount

I've tried everything I can think of for that line with the ??? in, .line.color, .color, .bordercolor but Excel VBA doesn't like any of them , I get error 438 'object doesn't support this property or method'.

View 2 Replies View Related

How To Convert Selected Multiple Lines Of VBA Code Into Comment Line

Jan 29, 2014

Adding ' in the beginning of a line converts the rest into comment line. I wonder if there is an easy way to convert a huge area into comment line to try something on code. I couldn't find such an option in the menu.

View 2 Replies View Related

Changing Comment Box Color

Sep 11, 2006

How do I use VB to change the comment box color to blue. The code i have now defualts to red.

Public preValue As Variant 'Declares a variable to be used in both macros
'This is the first line for a macro that runs when a cell is changed.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub 'Limits the change to 1 cell only
If Intersect(Target, Range("$A$1:$M$42")) Is Nothing Then Exit Sub
Target.ClearComments 'Clears any existing comment
Target.AddComment.Text Text:="Previous Value was " & preValue & Chr(10) & "Revised " & Format( Date, "mm-dd-yyyy") & Chr(10) & "By " & Environ("UserName") 'Adds a new comment with the text. CHR(10) is a return...............

View 9 Replies View Related

Color Font Within Comment Box

Dec 28, 2007

I want to apply different font colors to text written in an excel comment box using VBA code (Please check the attached screenshot) I was able to apply one colour to all by using the following code, but am not able to apply different font color to each charater/bunch of characters.

Range("B7").Comment.Shape.Select True
Range("B7").Comment.Text Text:="A" & Chr(10) & "B" & Chr(10) & "C"
With Selection.Font
.ColorIndex = 9
End With

View 3 Replies View Related

How To Change Line Thickness In Line Graph

May 21, 2010

I have a chart sheet with a line graph that contains two series: I want to change their thickness, but I am not able to format it with VBA.

View 6 Replies View Related

Change Default Comment Box Size

Oct 14, 2009

I need to default size to be bigger. Is there a way to do this so I do not need to re-size the box every time?

View 2 Replies View Related

Excel VBA - Add Comment On Change To Cell Value

Oct 1, 2012

I am looking to have a select few cells generate a comment when the user changes their value. I don't want the entire sheet to be affected as it will only apply to the header row of columns J:P.

I'm not sure if it matters but I have the worksheet protected and the cells in question are unlocked.

Below is an example of the code I'm trying to get to work.

Option Explicit
Public preValue As Variant
Private Sub worksheet_change(ByVal Target As Range)
End Sub
If Target.Count > 1 Then Exit Sub
Target.ClearComments

[Code] .......

View 1 Replies View Related

Comment Change Event In A Cell

Apr 26, 2014

I want to write some code if a cells comment changes. Worksheet change doesn't fire if you right click a cell and edit the comment and save it. Is there an event that does fire when the comment changes?

View 2 Replies View Related

Comment Boxes Change Size And Location?

Sep 16, 2013

The comment boxes keep changing shape and location in my spreadsheet. Some are completely smashed together, while others are extraodinarily wide. I had them all to the right of the cell they applied to; but now they are all over the place.

View 1 Replies View Related

Change Comment Box Shape And Make It Default

Jul 1, 2013

i changed the shape of "Comment" box with edit shape. However when i right click the updated shape and click on Set Autoshape Default it does nothing. When I insert a new comment it is back to old shape.

View 2 Replies View Related

Row Color To Automatically Change To Blue (color 5) (bgcolor = #0000FF)

Oct 22, 2009

In my Excel 2003 worksheet, I need the row color to automatically change to blue (color 5) (bgcolor = #0000FF) - when the user changes the text from VALID to INVALID in the range: B3:B65000.

For example:

Cell B5 contains the text: VALID

When the user changes the text in the field to read: INVALID - then I need the row range: A5:W5 to change to the color blue.

View 4 Replies View Related

Auto Calculate Color Function On Cell Color Change

Feb 15, 2010

I would like to be able to change the color of a cell in V4:AB31 and have the formula in AM10:AM13 automatically calculate the new result. As it is now the user has to press Ctrl ALT f9 for the formula to recalculate.

View 7 Replies View Related

Change Font Color Based On Adjacent Cell Color

Apr 18, 2008

I have two columns. The first one (A) contains cells that have different Fill colors. The second column (B) contains text adjacent to the colored cells. I am trying to change the color of the text in the second column (B) to the corresponding color in the adjacent cell in the first column (A). I don't think conditional formating works well in this situation. I believe the solution would be some sort of macro.

View 3 Replies View Related

Comment Code Without Having To Introduce " ' " Before Each Line

Sep 26, 2008

Is there a way to comment code without having to introduce ' before each line? Very much like in C language, we use /* to open comment lines and */ to close comment lines. I know we can use _ [underscore] but I find it not very pratical. Both solutions for comenting in VBA aren't very pratical, specially when copying and pasting coments from a text editor for example.

View 3 Replies View Related

Change Default Text Size On Inserted Comment

Sep 26, 2009

Is it possible to change the default text size on comments I insert throughout my spreadsheets? I have to enlarge 100% of them.

View 2 Replies View Related

Change Colour Of Comment Text With VBA If Its Today Date

May 7, 2013

I have a number of comment (all column D) that have lots of data in each one.

The data will appear like this (each new entry (new entry denoted by a date))

01-May 12:58:05 Liam
02-May 16:18:27 Josh
07-May 11:51:26 Bob
02-May 01:13:34 Terry

What i want to know is, can i change the colour of the text in the comment, if its todays date. So in this case 07-May 11:51:26 Bob goes red (its the 7th here for me).

View 3 Replies View Related

Change Cell Comment Default Show Position

Feb 3, 2008

It seems that you can change position when you editing comment and its remembered, but when its showing its alway's on default position.

Is there way to change position of displayed (when you mouse over cell and coment pops up) comment position?

View 3 Replies View Related

Change Font Color If Cell Color Become Yellow (6)

Jul 9, 2009

I have font color white in blank cells in column E and I (from row 5 to row 245) so the visitors will not see the text. If any of these cells become yellow (color code is 6), the font color will become black so visitors can see the text alot far better than white. I've tried this code myself after this post but nothing happen

View 4 Replies View Related

Change Text Color Based On Cell Color

Oct 17, 2006

I have various row cells in column (F) filled with the color Green. And corresponding text in Column G. How can I change the text of that particular row to white.

i.e.: if any cell in column F is Green, change the text color of that row in Column G to white?

View 5 Replies View Related

Conditional Line Chart Color

Jun 26, 2008

I am trying to have the points and the lines connecting them on my line graph be two different colors depending on a value i put in a column next to the chart values.

For example:
x y Variable
1 5 1
2 10
3 16 1
4 5

The points where there is a 1 in the variable column i would like to make a different color from the other points.

I did an extensive search and all i could find was the following:

Sub myChartClass_Calculate()
Dim cht As Object
Dim p As Object
Dim V As Variant
Dim Counter As Integer

However, this uses the values from the chart data, not an outside variable.

View 4 Replies View Related

Worksheet Change Event :: Change Color As A Result Of Calculation

Jun 17, 2009

an event macro to change the font colour of a cell whose value changes as a result of a calculation.

View 9 Replies View Related

Copy Contents Of Multiple Comment Boxes And Paste In Single Comment Box

Mar 13, 2014

how to copy the contents of multiple comment boxes and paste in a single comment box.

The big picture is that I have a number of cells with numerical values in and text in comment boxes. I want to be able to click a button to copy the contents of the comment boxes and paste them, along with the numerical value from the cell, into a single comment box, ordered by highest to lowest value within the comment box, then delete the original cells and comments.

I am quite new to VBA but have been coping quite well so far with information of the web and analysing recorded macros.

View 6 Replies View Related

Change The Cell Color On Drop Down Change

Jun 3, 2008

I have a drop down sub pasted to worksheet:

Private Sub ComboBox1_Change()
ComboBox1.List = Array(100, 200, 300, 400)
If Range("I11").Value < Range("N11").Value Then
If Sheets("Profile").Range("K18").Value < ComboBox1.Value Then
Range("I11").Interior.ColorIndex = 2
Else
Range("I11").Interior.ColorIndex = 3
End If
End If

End Sub

I want it to change the cell color on drop down change. How can I modify things to have the change in drop down selection?

View 9 Replies View Related

Color Column Chart Columns Based On Thresh-hold Line

Nov 21, 2007

I want to show 8 members of staff's names, with their sales closing percentages. I want then to produce a chart showing their percentages as a column with a line showing 16% going across the chart showing who is above and who is below the target.

Ideally i would also like to change the colour of the columns or background of those below the line to show who is under target.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved