+ Reply to Thread
Results 1 to 3 of 3

On button press, if the currently selected cell is this, do that otherwise do the other

  1. #1
    Registered User
    Join Date
    07-31-2014
    Location
    texas
    MS-Off Ver
    2010
    Posts
    22

    On button press, if the currently selected cell is this, do that otherwise do the other

    Cannot seem to get this to work: basically if K5 is the currently selected cell when the button is pressed, set it equal to 0, if it isnt the cell that is currently selected set it to whatever else I decide:

    Please Login or Register  to view this content.
    Why is this putting 5s in K5 no matter where I select?
    Last edited by excel12121; 07-15-2015 at 12:48 PM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: On button press, if the currently selected cell is this, do that otherwise do the othe

    Hello excel12121,

    I am a bit confused with what your exact requirement is???

    If the Code below does not help, you may have to elaborate a bit more by, attaching a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Please Login or Register  to view this content.
    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: On button press, if the currently selected cell is this, do that otherwise do the othe

    Try

    Please Login or Register  to view this content.

+ 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. [SOLVED] On Button Press Send Value to Selected/Active TextBox?
    By NewYears1978 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2015, 01:02 PM
  2. [SOLVED] Move contents of cells from one cell to another at the press of a button......
    By davidmstorey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2014, 04:14 AM
  3. How to increase a cell valu by 1 with a press of a keyboard button?
    By aalfouzan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 05:42 AM
  4. Replies: 9
    Last Post: 08-18-2010, 12:33 PM
  5. Show A1 in C3, then A2 in C3, then A3 in C3 until blank cell reached on button press
    By jamiepullen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2008, 06:04 PM
  6. How can I delete 1 from the value of a cell when I press a Button.
    By Gary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2005, 04:06 PM
  7. Replies: 2
    Last Post: 02-14-2005, 03:06 AM

Tags for this Thread

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