+ Reply to Thread
Results 1 to 2 of 2

Macro to store previously selected cell

  1. #1
    Registered User
    Join Date
    04-21-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    1

    Question Macro to store previously selected cell

    I am creating an excel app that has to check to see if the previously active cell is empty or not.

    I am having zero luck storing the address of the active cell and keeping it after changing cells.

    Purpose of Application Example:

    If B2 is active then store address of B2 and add combobox to A2.
    If active cell changed to B4, check if B2 value, if empty delete combobox in A2 and update stored value of previous cell to new active cell, else update stored value of Active cell to new active cell.

    Any help with this would be greatly appreciated.

    Thank you in advance.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Macro to store previously selected cell

    not sure what you mean by delete combobox but this code can show you how to get "previous" active cell and check to see if empty

    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. In a macro how can I access previously selected cells.
    By joebbb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2015, 07:16 PM
  2. PLease Help: Dropdown list that removes previously selected item
    By Gus88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2014, 01:28 PM
  3. Replies: 3
    Last Post: 06-16-2014, 11:23 PM
  4. If...then help. Reselecting previously selected sheet
    By sesshuswan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2014, 11:13 AM
  5. Help with sebastienm's code - Returning To Previously Selected Worksheet
    By AcesUp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2006, 05:44 AM
  6. [SOLVED] Macro to concatenate previously selected cells
    By Grumpy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2005, 08:55 PM
  7. Clearing what you have previously selected
    By T8RSP in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2005, 06:30 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