+ Reply to Thread
Results 1 to 3 of 3

What is wrong with this macro?

  1. #1
    Registered User
    Join Date
    02-24-2015
    Location
    Albuquerque, USA
    MS-Off Ver
    2013
    Posts
    10

    What is wrong with this macro?

    Hi Guys!

    I have this macro and get always the result in "A20" of 1 althought TPH = 10 and BPH = 10
    Why do I not get 2?

    Thanks a lot

    Detlef

    Please Login or Register  to view this content.
    Detlef Heun
    www.aircraft-trust.com

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    817

    Re: What is wrong with this macro?

    Hello Detlef,

    At first, cell A2 will be a 2, but the code in the second part turned the 2 into a 1.
    Kind regards, Harry.

  3. #3
    Registered User
    Join Date
    02-24-2015
    Location
    Albuquerque, USA
    MS-Off Ver
    2013
    Posts
    10

    Re: What is wrong with this macro?

    Thanks, Harry.
    I placed the lower macro to the top and it worked.

+ 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. Wrong value to run the macro
    By dilipgr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2015, 06:33 AM
  2. [SOLVED] What is wrong with this Macro???!!!!?!?!?!><
    By AstToTheRegionalMGR in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-17-2015, 02:59 PM
  3. Sorting goes wrong + macro
    By Fungry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2014, 09:32 PM
  4. HELP: What is wrong with this macro??
    By henwood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2012, 08:20 AM
  5. My recorded macro gone wrong?
    By CrashMatRob in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-12-2012, 11:09 PM
  6. What's wrong with this macro?
    By belly0fdesire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2006, 07:00 PM
  7. What have I done wrong with this Macro???
    By Shandy720 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2005, 12:05 PM

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