PC Review


Reply
Thread Tools Rate Thread

Difficulty with formula

 
 
XP
Guest
Posts: n/a
 
      11th Apr 2008
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      11th Apr 2008
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" <(E-Mail Removed)> wrote in message
news:2959E14E-7748-434E-8087-(E-Mail Removed)...
> 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 With Quote
 
XP
Guest
Posts: n/a
 
      11th Apr 2008
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" <(E-Mail Removed)> wrote in message
> news:2959E14E-7748-434E-8087-(E-Mail Removed)...
> > 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 With Quote
 
Peter T
Guest
Posts: n/a
 
      11th Apr 2008
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" <(E-Mail Removed)> wrote in message
news:2959E14E-7748-434E-8087-(E-Mail Removed)...
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array formula difficulty Sean Cunningham Microsoft Excel Discussion 10 13th Sep 2009 07:52 PM
Formula difficulty Pyrite Microsoft Excel Misc 4 8th Oct 2008 11:38 AM
Having difficulty understanding SMALL function in formula Steve Microsoft Excel Discussion 8 5th Apr 2007 12:29 AM
IE PDF difficulty kjk Windows Vista General Discussion 0 25th Feb 2007 07:26 PM
Price Function - Difficulty in understanding the formula abhi_23 Microsoft Excel Worksheet Functions 0 18th Jan 2006 09:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:28 AM.