Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there
I'm trying to create a script which adds a new sheet with datas from other sheets. Some things work now but I have still an error and I realldy don't understand why. My script looks like this: Set objXL = WScript.CreateObject ("Excel.Application") .... Set objDanach = objXL.ActiveWorkBook.WorkSheets(objXL.ActiveWorkBo ok.Worksheets.Count) Set objWb7 = objXL.ActiveWorkBook.WorkSheets.Add(,objDanach) objWb7.Name = "KPI4-6" objWb7.Tab.ColorIndex = 7 .... objWb7.Cells(6, 1).Value ="some text..." objWb7.Cells(6, 1).Font.Italic = TRUE objWb7.Cells(6, 1).Font.Size = 8 objWb7.Cells(6, 1).Font.ColorIndex = 6 objWb7.Cells(6, 1).Interior.ColorIndex = 34 .... objWb7.Columns("A:A").Select objWb7.Selection.Columns.AutoFit objWb7.Range("A1").Select .... In the last part I get an error on objWb7.Columns("A:A").Select Error Code 800A03EC the error syas someing like Select class Rang failed Thanks in advance for any help Best regards Ralf |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SaveAs problem in Excel VBA script | Excel Programming | |||
Trying to convert a excel 2003 to 2007, but it contain script. | Excel Discussion (Misc queries) | |||
Trying to convert a excel 2003 to 2007, but it contain script. | New Users to Excel | |||
Excel 2003 VBA Help me complete this Search script | Excel Programming | |||
Problem with Excel VBA script, decimal bug | Excel Programming |