+ Reply to Thread
Results 1 to 8 of 8

Macro Not Working

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Macro Not Working

    Greetings,
    I have been working on this macro for over 3 hours and cannot figure out why it is not working correctly. On Sheet24 I have placed the following macro. It is to go to Sheet1 (which is hidden) and confirm what value is in cell G835. If the value is blank, it is to insert "True". If the value is "True" it is to insert "False". If the value is "False", it is to insert "True". It only wants to insert "true" if the cell is blank - nothing else.
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro Not Working

    What do you mean by not working correctly.

    And in fact using .Select is unnecessary and wasteful.

    Have you tried instead code like

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Macro Not Working

    How about
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Macro Not Working

    Thank you both very much!
    Fluff, I tired your suggestion and it works great!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Macro Not Working

    Glad we could help & thanks for the feedback

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Macro Not Working

    @brentjohn.
    Just as an afterthought.
    If someone with the same problem uses Google in an attempt to find a solution, do you think he'll enter "Macro not working"?
    See #1 in the Forum Rules.

  7. #7
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Macro Not Working

    jolivanes,
    Good point. However, how should have I labeled my request.

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Macro Not Working

    @brentjohn
    I would not worry too much about it.
    Something like "Change Cell Value If Other Cell Value Changed."
    Or something to that effect.
    It's all for the next time.

+ 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 working in windows machine but not working in MAC
    By amitmodi_mrt in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 5
    Last Post: 11-16-2017, 11:26 AM
  2. [SOLVED] Macro working in windows machine but not working in MAC
    By amitmodi_mrt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2017, 02:12 PM
  3. Copied working macro to new workbook, but no longer working
    By twisted31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2017, 06:17 PM
  4. [SOLVED] Macro working perfectly on MS office x86 but not working on x64
    By alexgoaga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-26-2017, 05:04 AM
  5. Well working simple macro now not working-open folder
    By jomili in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 07-05-2017, 08:24 AM
  6. [SOLVED] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  7. Hide Columns Macro - Working on Windows not working on Mac OSX
    By bcadar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-08-2016, 09:05 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