Thanks for the reply Andrew
The following is the macro I created. It does not contain any checkbox objects in the code
I'm not a VB guru so any assistance you can provide would be great. I'm assuming I woul
add the code you forwarded to me and replace variables with values where appropriate(?)
Thanks in advance
Melani
Sub AddInputCard(
' AddInputCard Macr
' Macro recorded 12/23/2003 by male
' Keyboard Shortcut: Ctrl+
Cells.Find(What:="Input(s)", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False).Activat
Range("A107").Selec
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Selection.EntireRow.Inser
Rows("89:106").Selec
Selection.Cop
Range("A107").Selec
ActiveSheet.Past
ActiveWindow.SmallScroll Down:=1
Range("A107").Selec
Application.CutCopyMode = Fals
End Su
----- Andrew wrote: ----
Melanie
I tried the macro record approach and the chk boxes were copied/paste
when I ran it, however, rather than pasting the chkbox in my new ro
it was pasted over the top of the existing checkbox. Try deleting o
moving the original textbox - I'm guessing you'll find another on
underneath
You may find the following interesting. It inserts a checkbox i
column "H" on the current row when the user types something in colum
3 of that row
Depending how your copy/paste macro looks like you should be able t
modify this to suit. The key thing is to set the top of the checkbo
object to the top of the row that you are in
If you have difficulties please post back your code and I'll see wha
I can do
Good luck
Andre
Private Sub Worksheet_Change(ByVal Target As Excel.Range
Dim rng As Rang
Dim obj As Objec
If Target.Count > 1 Then Exit Su
If Target.Column = 3 The
If IsEmpty(Target) Then Exit Su
Set rng = Cells(Target.Row, "H"
' Check if there is already a checkbo
For Each obj In ActiveSheet.OLEObject
'If TypeOf obj.Object Is MSForms.CheckBox The
If obj.TopLeftCell.Address = rng.Address The
Exit Su
End I
'End I
Nex
With ActiveSheet.OLEObjects.Add(
ClassType:="Forms.CheckBox.1",
Link:=False,
DisplayAsIcon:=False,
Left:=rng.Left + rng.Width / 2 - 10,
Top:=rng.Top,
Width:=rng.Width,
Height:=rng.Height
.Object.Caption = "
'.LinkedCell = rng.Addres
.Object.Value = Fals
End Wit
Application.ScreenUpdating = Tru
End I
End Su