+ Reply to Thread
Results 1 to 8 of 8

Conditional Macro

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    Conditional Macro

    Hello, I am wondering if anyone can suggest base code I can manipulate to fit my needs. I am calculating y-values for a graph. So i know how to create graphs and all that. My main issue/question is:

    I am calculating the height of water in a tank until it reaches a certain level. I am calculating the height at different time intervals, every 5 minutes for 24 hours. At a certain level, the tank will begin to drain and I want to calculate the height at each 5 minute intervals as it is draining. I can easily calculate the rates of change in vba I am just not sure how to set up the conditional formatting/logic. Any help would be appreciated.
    Thanks

  2. #2
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Conditional Macro

    Hi there !
    One way could be using while loop like in this example:
    Please Login or Register  to view this content.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  3. #3
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    Re: Conditional Macro

    Thanks. I need a little more help with the other part too. ha not as vba savvy as I thought

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Conditional Macro

    Maybe you could upload a file? (striped of confidential data)
    In the absence of an uploaded file I can only think of this:

    Please Login or Register  to view this content.
    Last edited by bulina2k; 05-09-2016 at 05:03 PM. Reason: add code

  5. #5
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    Re: Conditional Macro

    No problem. Thanks
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Conditional Macro

    My code above works ok. Here you have your file with the code inside.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57
    Quote Originally Posted by bulina2k View Post
    My code above works ok. Here you have your file with the code inside.
    Awesome thanks so much!

  8. #8
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Conditional Macro

    Glad I could help!
    Please close the thread and add rep if you consider.
    Have fun!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to set up conditional message based on results of conditional formatting
    By paysola in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2016, 12:38 AM
  2. Conditional Macro
    By MrReds in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2011, 08:55 AM
  3. 'Conditional' macro
    By TheaP in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2011, 06:45 AM
  4. Conditional macro
    By JP1972 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2007, 07:28 AM
  5. Conditional formatting macro (highlight macro)
    By c991257 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2007, 02:46 PM
  6. conditional sum macro
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2006, 03:50 PM
  7. conditional sum and macro
    By Francine Otterson in forum Excel General
    Replies: 1
    Last Post: 06-22-2005, 04:44 AM

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