well, the entire prog is huge, but I'll paste a sample procedure. As you can see, I have to activate the worksheet - yes, i had to - it was the only way to avoid the error. Then it works fine till it gets to "Update Combobox" - which activates (it had to) another worksheet. When I return to the current macro, it messes up on the next line.. but that makes sense b/c I'm pasting to a specific cell.
But the earlier parts work off a named range.. and it worked fine when I ran it on my 2000...lemme test this again...ok, I'm losing it.. I used to run this code fine...and now it doesn't....am i just nuts?
anyway, here's the code:
Sub SelectCell(ByVal Sheetname As String, ByVal rnInputRange As String, ByVal tbValue As Object, ByVal NeedDownShift As Boolean, _
Optional ByVal tbDate As Variant, Optional ByVal tbDate2 As Variant, Optional ByVal cbValue As Variant, Optional ByVal tbShares As Variant)
Dim AmountRow As String, stAddress As String
Dim Address1 As String
Dim OffSetRow As Integer
Worksheets(frm_Input.Caption & Sheetname).Activate
If tbValue <> "" Then
Range(rnInputRange).Select
If NeedDownShift Then
Selection.Insert Shift:=xlDown
OffSetRow = -1
Else
OffSetRow = 0
End If
AmountRow = GetAddress(rnInputRange)
Range(AmountRow).Offset(OffSetRow, 0).Value = tbValue.Value
If Not IsMissing(tbDate) Then 'for incoming
Range(AmountRow).Offset(-1, -2).Value = tbDate.Text
End If
If Not IsMissing(tbDate2) Then 'for assets
Range(AmountRow).Offset(-1, -3).Value = tbDate2.Text
End If
If Not IsMissing(cbValue) Then
Range(AmountRow).Offset(-1, -1).Value = cbValue.Text
UpdateCombobox cbValue, frm_Input.Caption & "_IncomeDescriptions"
End If
If Not IsMissing(tbShares) Then
Worksheets(frm_Input.Caption & Sheetname).Activate
Range(AmountRow).Offset(-1, -2).Value = tbShares.Text
End If
End If
End Sub