+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : open current cell, close window & repeat

  1. #1
    Registered User
    Join Date
    09-02-2011
    Location
    Wallaroo, Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile open current cell, close window & repeat

    Hi
    This is my first time on here, I have been searching for a answer to a problem that I have but at this stage I have been unable to find one.
    The situation is that a friend created some forms for me that pop up when you double click on a cell. This form has a list of items that I can put a check next to as well as putting a check next to the ones already in the cell that when you then hit enter it inserts the items checked into the cell etc. This works great, now what I want to be able to do is to create a macro or something like that I think that will :

    When you double click on a cell a form comes up and automatically puts a check next to the corresponding items listed.

    You then hit ‘Add Selected Items’ or enter and it sorts the items in the cell alphabetically.

    So what I am looking for is something that will open the current cell (up pop’s form)
    Hit Enter
    Move onto the next cell down
    Repeat

    I have attached a test file for anybody who might be interested, basicially I need my data in a particular order in columns 9, 10, & 52:63 what it currently does is when you double click on one of these columns a form comes up listing what is in the cell and you then close it by clicking on 'add selected items' this then sorts my data into the order that I want. I had done most of these prior to working out how to use this new form, so I need to go back & sort all of the cells that I had done previously. Any help would be appreciated.

    Greg
    Attached Files Attached Files
    Last edited by Camps and Vans; 09-04-2011 at 05:51 PM. Reason: Changed Title

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: open current cell, close window & repeat

    Thanks for taking the time to read and comply with the rule . I've changed your new title slightly.

    It would be better if you attached an example workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-02-2011
    Location
    Wallaroo, Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: open current cell, close window & repeat

    Is what I am asking for not achievable as I have had no responses.

    Thanks
    Greg

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: open current cell, close window & repeat

    You have code to show the form. I'm not sure what you want to do then

  5. #5
    Registered User
    Join Date
    09-02-2011
    Location
    Wallaroo, Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: open current cell, close window & repeat

    Hi Roy

    Thank You for your reply.

    I want to be able to do as per my original post as the data in the cells at the moment are not in any order, so instead of having to manually double click on every cell (I currently have 7,900+ lines of data with up to 13 cells on each line) I would like a macro that does this for me.

    Thanks
    Greg

  6. #6
    Registered User
    Join Date
    09-02-2011
    Location
    Wallaroo, Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: open current cell, close window & repeat

    Does anybody have any suggestions for me to achieve what I want to, I have been looking at every forum I can find but can't find a solution. I tried the Application.DoubleClick code but as I found out it doesn't work.
    This is what I have come up with so far, but all it does is move down to the next cell and doesn't open up my form that a double click does.

    Sub SortContentsofCell()
    '
    ' Sort Cells
    '
    ' Keyboard Shortcut:ctrl+z
    '

    Worksheets("Australia").Activate
    Application.DoubleClick
    Application.SendKeys "{ENTER}"
    Application.SendKeys "{DOWN}"
    Loop

    End Sub

    Can anybody help me please.

    Greg
    Last edited by Camps and Vans; 11-19-2011 at 11:44 PM.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: open current cell, close window & repeat

    You really need to read the Forum Rules properly!!!

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

  8. #8
    Registered User
    Join Date
    09-02-2011
    Location
    Wallaroo, Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: open current cell, close window & repeat

    Sorry, my mistake
    Code that I have done so far is :
    Please Login or Register  to view this content.
    Thanks
    Greg

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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