Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've extracted a piece of coding that keeps giving me Run-time error '1004':
Application-defined or object defined error. What I'm doing is creating a blank worksheet, adding titles, and extracting data from other sheets. Most of the data is pulled directly from the various sheets. In one instance I need to put a formula in the cell to do some evaluation. Apparently I don't understand how this is done. The last line below is where I've been unsuccessful in coding. 'Insert columns into the Discrete Sheet 'Select the Sheet and Insert Titles Sheets("Resources (Discrete)").Select Columns("C:I").Select Selection.Insert Shift:=xlToRight Range("F2").Select ActiveCell.FormulaR1C1 = "'SDATE" Range("G2").Select ActiveCell.FormulaR1C1 = "'EDATE" 'Set the formatting in the data area Range("F3:G3").Select Selection.NumberFormat = "m/d/yyyy" 'Extract the data Range("F3").Select ActiveCell.Formula = "=IF('BOE-Data & Text'!R[11]C[1]= ""12:00:00 AM"",='BOE- Data & Text'!RC[-4],='BOE-Data & Text'!R[11]C[1])" Any help is appreciated. Thanks, Lee Kirts |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert text from one cell into formula in another cell. | Excel Discussion (Misc queries) | |||
how do I insert a cell value in a hyperlink formula | New Users to Excel | |||
Maintaining a formula in a cell when there was an insert row | Excel Discussion (Misc queries) | |||
Insert value of formula into cell | Excel Programming | |||
insert formula in last cell | Excel Programming |