Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I am getting runtime error on below code,anyone can give a hand why that happens?Thanks in advance. Sub sukre() Dim pn Dim rng As Range pn = ComboBox1.Value bugun = Format(Date, "[$-409]d-mmm-yy;@") If CheckBox1.Value = True Then pn = OTB.Value End If Sheets.Add.Name = bugun Set rng = Range("a1:a10000") rng.Find("", rng(rng.Rows.Count)).Select ' HERE IS WHERE I AM HAVING AN ERROR Selection.Value = bugun ActiveCell.Offset(0, 1).Value = pn ActiveCell.Offset(0, 2).Value = PitUF.DTB.Value ActiveCell.Offset(0, 3).Value = PitUF.RTB.Value PitUF.ComboBox1 = "" PitUF.OTB = "" PitUF.DTB = "" PitUF.RTB = "" PitUF.ComboBox1.SetFocus End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copied sheet causing duplicate range name error (Excel 2010) | Excel Discussion (Misc queries) | |||
Copying Sheet - subscript out of range error | Excel Programming | |||
In multiple sheet copy error subscript out of range ?? HELP | Excel Programming | |||
Excel macro - Range & Sheet name error | Excel Programming |