Results 1 to 6 of 6

Compile a Value in VBA Instead of Cell

Threaded View

titanxt Compile a Value in VBA... 08-06-2008, 09:54 PM
mudraker I do not fully understand... 08-07-2008, 08:40 AM
royUK Use a Named Formula, see ... 08-07-2008, 01:32 PM
titanxt Mudraker, I did have a lot... 08-21-2008, 05:39 PM
shg You can protect the cells,... 08-21-2008, 05:48 PM
titanxt Thank you Shg. I figured... 08-21-2008, 06:01 PM
  1. #1
    Registered User
    Join Date
    07-23-2008
    Location
    usa
    Posts
    10

    Compile a Value in VBA Instead of Cell

    On my worksheet I have a series of formulas in sperate cells as follows:

    Cell F22 =If(A22=1, 2)
    Cell G22 =If(A22=2, 1)
    Cell H22 =If(A22=3, 0)
    Cell I22 =Sum(F22:H22)

    I then use the value in I22 in other functions by using "I22" in their formulas. Is there a way in VBA to perform the same task so I can refer to the value in other formulas without assinging the value to a cell in the worksheet?

    Also, how do I set the macro to always update the calculations when new numbers are entered on the spreadsheet?

    Thanks!
    Last edited by VBA Noob; 08-07-2008 at 02:22 AM.

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