+ Reply to Thread
Results 1 to 10 of 10

Need help changing a cells value depending on the value on another.

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Need help changing a cells value depending on the value on another.

    ClubMembers.docx
    Hi all. I'm desperate for some help. I hope the attached file works cos trying to explain my problem with text would be a nightmare. Unfortunately, VBA and Macro seen to be grayed out so cant do it that way. Any help would be great.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need help changing a cells value depending on the value on another.

    Hi randall,

    Will conditional formatting work for you? See http://www.automateexcel.com/2009/02...al-formatting/ to tag all numbers greater than 200 or your cut value.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Re: Need help changing a cells value depending on the value on another.

    With conditional formatting, i believe that you can only change the format of a cell, like its color but not its contents, please correct me if i am wrong.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need help changing a cells value depending on the value on another.

    Without vba you can only do what you want by using a formula in the cells E4:E12, which you will be overtyping when you manally change them back to Y, so the formula will not be there to reuse the following year.

    If vba is not available then I'm guessing you have a trial version of excel that came preinstalled in your pc / laptop?

  5. #5
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Re: Need help changing a cells value depending on the value on another.

    I have office home and student 2010 that i purchased myself. Maybe i can use the CD to add program features, if it's on the CD that it. If so What VBA code would i use to solve my problem. If my CD does not have VBA, where can i get it.
    Last edited by randall78; 06-25-2012 at 02:09 PM.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need help changing a cells value depending on the value on another.

    I think it should be on your cd, but don't have that specific version to verify that.

    code would be something on the lines of

    Please Login or Register  to view this content.
    ** Note that the code is untested. I have been having system stability issues over the last couple of days, and trying to test the code resulted in an error which I think is related to those issues as I can't see any other reason for it.

    MarvinP could you verify? Runtime error 28, out of stack space is being returned at the switch to manual calculation.

  7. #7
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Re: Need help changing a cells value depending on the value on another.

    Thanks ever so much for your quick reply and help, as soon as I have VBA up and running I look forward to testing the code. I will keep you informed.

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need help changing a cells value depending on the value on another.

    Hi,
    Add a Watch of runonce and see if it ever goes back to false so your code is run more than once. Also add a breakpoint on your "If runonce then..." line and see if it is doing what you expect. I expect you are running this code so many times it is filling the stack and you get an error. You can do a memory check to see if you think it is bad memory.

  9. #9
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Re: Need help changing a cells value depending on the value on another.

    Ok, thanks for your help. I guess i should of mentioned the i am a novice when it comes to using VBA, in fact, i have never used it before. i have tried running that code and i get the error "invalid attribute in sub or function" and the word public on the first line of code is highlighted.

  10. #10
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Need help changing a cells value depending on the value on another.

    Sounds like you have put the code in the wrong place. Did you add it to the worksheet code module?

+ Reply to Thread

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