Results 1 to 12 of 12

Thread: [RESOLVED] value of formula in vba EXCEL

Threaded View

  1. #1

    Thread Starter
    Addicted Member sweet_dreams's Avatar
    Join Date
    Apr 2005
    Location
    Poland, Lodz
    Posts
    189

    Resolved [RESOLVED] value of formula in vba EXCEL

    Hi all,

    I have such a problem. I would like my code to depend of cells value. But problem is that in this cell there is formula which returns value. How can I make my program read this value.

    for example: In A1 i have formula if(b1>0;1,-1)

    and programmatically I would like to do sth like that

    VB Code:
    1. if range("a1").value = 1 then
    2. 'my code
    3. end if

    the problem is that when value in cell A1 comes form formula code shown above doesn't work.

    Please help.

    Regards,
    sweet_dreams
    Last edited by sweet_dreams; Mar 17th, 2006 at 10:40 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width