+ Reply to Thread
Results 1 to 5 of 5

Double click on an excel cell automatically at fixed intervals

Hybrid View

  1. #1
    Registered User
    Join Date
    10-12-2013
    Location
    melbourne
    MS-Off Ver
    Excel 2007
    Posts
    10

    Double click on an excel cell automatically at fixed intervals

    Hi everyone

    I need to double click (left button click) on a cell which allows it to import data automatically and refresh the data I am importing. How do I carry this out in an auto mode and at a fixed interval.

    Then I would like to sample a cell with the data at fixed intervals too to populate a column, how do I carry this out.....


    regards

    Eugene

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Double click on an excel cell automatically at fixed intervals

    In your worksheet module you can insert the "Worksheet_BeforeDoubleClick" event and just call your code from that.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    10-12-2013
    Location
    melbourne
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Double click on an excel cell automatically at fixed intervals

    Hi xla....Sorry I do not understand......where is the worksheet module?

    Joe

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Double click on an excel cell automatically at fixed intervals

    Hi Joe,

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    'your code here
    End Sub
    Press ALT + F11 to open the Visual Basic Editor.

    Save your Workbook As Macro-Enabled

    Click on your sheet

    Type "Option Explicit" then paste the code under it

    And, you should be ready to go

  5. #5
    Registered User
    Join Date
    10-12-2013
    Location
    melbourne
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Double click on an excel cell automatically at fixed intervals

    Attachment 270767
    I am a novice at this...This is what I have done...what is the code
    How does it click automatically every 5 seconds as an example
    Also how do I do the next part which is to sample data from a ell at regular intervals too...

+ 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. Copy double-clicked cell to next empty row in different sheet with each double-click
    By erhathaway in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2013, 12:06 AM
  2. [SOLVED] Double click a cell to copy it to another cell & how to create a reset button in excel
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2013, 10:10 AM
  3. Go to link after double click on cell excel 2010
    By rmebus in forum Excel General
    Replies: 1
    Last Post: 02-08-2012, 10:45 AM
  4. double click option in listbox outputs to cell in excel 97 !
    By spyrule in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2006, 12:05 AM
  5. Replies: 4
    Last Post: 08-02-2005, 09:05 PM

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