The trick is to select another cell... at any given time, at least one cell WILL be selected (if not any other object) in a sheet. So at the end of your macro, select any other cell, for example the top left cell A1
Sam Mathai Chacko On Thu, Mar 1, 2012 at 12:12 AM, Scruffy Huffy <tuffhu...@yahoo.com> wrote: > This problem is a bit difficult to describe, but here goes. I'm > using a command button macro to select a cell, copy its value, then > past the value to another cell. > > However, I don't know the code to "de-select" the copied cell. In > other words, after the copy/paste is complete, the cell that I copied > from is still highlighted (has the animated "ant trails") going around > it. > > I'm sure there's a simple solution. Thanks in advance for your help! > > Robb > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- Sam Mathai Chacko -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com