Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Difficulty with formula
I'm having a ridiculous time over a very simple thing that I should be able
to do; I want to insert the following formula and I'm using the following function to do it: Formula: =D5&E5;" Render: RadioTuner;" Dim rCell as Range For each rCell in Activesheet.UsedRange.Columns(2).Rows rCell.Formula = "=D" & rCell.Row & "&E" & rCell.Row & ";" & """" & "" Next rCell This flubs on the formula, can someone please correct my formula above so it can be written into the sheet? Thanks... |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Difficulty with formula
Dim rCell As Range
For Each rCell In ActiveSheet.UsedRange.Columns(2).Rows rCell.Formula = "=D" & rCell.Row & "&E" & rCell.Row & "&"",""""" & """" Next rCell -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "XP" wrote in message ... I'm having a ridiculous time over a very simple thing that I should be able to do; I want to insert the following formula and I'm using the following function to do it: Formula: =D5&E5;" Render: RadioTuner;" Dim rCell as Range For each rCell in Activesheet.UsedRange.Columns(2).Rows rCell.Formula = "=D" & rCell.Row & "&E" & rCell.Row & ";" & """" & "" Next rCell This flubs on the formula, can someone please correct my formula above so it can be written into the sheet? Thanks... |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Difficulty with formula
Right you are sir! Thanks.
"Bob Phillips" wrote: Dim rCell As Range For Each rCell In ActiveSheet.UsedRange.Columns(2).Rows rCell.Formula = "=D" & rCell.Row & "&E" & rCell.Row & "&"",""""" & """" Next rCell -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "XP" wrote in message ... I'm having a ridiculous time over a very simple thing that I should be able to do; I want to insert the following formula and I'm using the following function to do it: Formula: =D5&E5;" Render: RadioTuner;" Dim rCell as Range For each rCell in Activesheet.UsedRange.Columns(2).Rows rCell.Formula = "=D" & rCell.Row & "&E" & rCell.Row & ";" & """" & "" Next rCell This flubs on the formula, can someone please correct my formula above so it can be written into the sheet? Thanks... |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Difficulty with formula
another one, without looping -
With ActiveSheet.UsedRange.Columns(2).Cells nRow = .Row ' typically but not necessarily 1 ..Formula = "=D" & nRow & "&E" & nRow & "&"",""""" & """" End With Seems a bit hit and miss as to where those formulas go though Regards, Peter T "XP" wrote in message ... I'm having a ridiculous time over a very simple thing that I should be able to do; I want to insert the following formula and I'm using the following function to do it: Formula: =D5&E5;" Render: RadioTuner;" Dim rCell as Range For each rCell in Activesheet.UsedRange.Columns(2).Rows rCell.Formula = "=D" & rCell.Row & "&E" & rCell.Row & ";" & """" & "" Next rCell This flubs on the formula, can someone please correct my formula above so it can be written into the sheet? Thanks... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formula difficulty | Excel Discussion (Misc queries) | |||
Price Function - Difficulty in understanding the formula | Excel Worksheet Functions | |||
difficulty with permutations, please help! | Excel Programming | |||
Difficulty with MOD operator when using Mod 1 | Excel Programming | |||
AutoFill difficulty | Excel Programming |