+ Reply to Thread
Results 1 to 4 of 4

Working formulacodes in vba need run by condition

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Working formulacodes in vba need run by condition

    Hi I have below working 2 different formulas, which run in a macro. I need a condition which one of them have to run.

    If C12 is 03 or 3( don't know if it means anything about the zero) then

    Please Login or Register  to view this content.
    If not any of either 03 or 3 then run this one below

    Please Login or Register  to view this content.
    The codes are working its more the condition for which of them to run I cant find out off.

    Please have a look thanks


    Sincerely
    Abjac

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Working formulacodes in vba need run by condition

    I'm on iPad at the moment so this is totally untested but if c12 is a number then

    Please Login or Register  to view this content.
    Should work but if c12 is text you might have to try

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Working formulacodes in vba need run by condition

    Double post

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Working formulacodes in vba need run by condition

    HI Crooza and thanks allot the first one worked perfect for me. So really great thanks allot and have a nice day.

    Sincerely

    Abjac

+ 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. vba is not working on specific condition
    By SHEIKH TALIB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 12:25 PM
  2. [SOLVED] If condition not working with InStrRev
    By amphinomos in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-09-2014, 06:40 AM
  3. Join condition not working in VBA
    By cruise.alter in forum Access Tables & Databases
    Replies: 6
    Last Post: 08-01-2012, 08:12 AM
  4. If Condition not working
    By luckyros in forum Excel General
    Replies: 6
    Last Post: 12-16-2011, 05:37 AM
  5. If condition not working in macro
    By shekar goud in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2009, 03:59 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