Results 1 to 3 of 3

Insert formula into a cell doesn't work :S

Threaded View

s80NL Insert formula into a cell... 08-17-2006, 11:40 AM
Guest Re: Insert formula into a... 08-17-2006, 12:00 PM
Guest RE: Insert formula into a... 08-17-2006, 12:05 PM
  1. #1
    Registered User
    Join Date
    07-14-2006
    Location
    Netherlands
    MS-Off Ver
    2000, 2003, and 2007
    Posts
    32

    Insert formula into a cell doesn't work :S

    If got this piece of code:

    For x = 5 To 10
    Range("D" & x).Formula = "=COUNTIF(PEN!$G:$G;$B" & x & " & \"CO\")"
    Next x

    Should result in:
    =COUNTIF(PEN!$G:$G;$B5 & "CO") in cell D5
    ...
    =COUNTIF(PEN!$G:$G;$B10 & "CO") in cell D10

    But it doesn't do the trick... someone who knows how to make it work?! Thanks in advance!!

    Steven
    Last edited by s80NL; 08-17-2006 at 11:43 AM.
    Life's a canvas, you fill the picture!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1