dparteka
Member
I’m using the macro shown below that works great on Excel 2003 but not so good on 2007. The way this should work is... a comment is created which includes the text “Employee No.: ”, the curser is automatically positioned at the end of that text which allows the user to type in their employee number. In 2003 while the user types in the comment box it auto-sizes while they are typing, in 2007 it does not auto-size until the user clicks inside the comment box after they are done typing, this prevents the users from seeing what they are typing while they are typing it, does anyone have a clue how to fix this?
[pre]
[/pre]
[pre]
Code:
Sub CreateComment()
With ActiveCell.AddComment
.Shape.Placement = xlMoveAndSize
.Shape.TextFrame.AutoSize = True
.Visible = False
.Text "Employee No.: "
Application.SendKeys "+{F2}"
End With
End Sub