copying formulas
Posted by jp on May 01, 2001 9:40 AM
This is probably a stupid question, but is it possible to place a formula into a spredsheet col from only the macroe. e.g.
------------------------------------
(something like this)
range("A2").select
activecell.formula = "=IF(SheetX!RC="""","""",left(SheetX!RC,FIND("":"",SheetX!RC)-1))"
columns("A:A").select
Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= False, Transpose:=False
'--- place col header ---
Range("A1").Select
ActiveCell.FormulaR1C1 = "Device"
-------------------------------------------
the data is on SheetX, the #rows are unknown, I need the new col on current sheet. The problem is that this is not a copy from one sheet/cell to another.
I told you this was a stupid question.... ;) ???