+ Reply to Thread
Results 1 to 3 of 3

Assign Macro to Cell

  1. #1
    Registered User
    Join Date
    03-22-2005
    Posts
    31

    Assign Macro to Cell

    Is it possible to assign a macro to a cell? I have it assigned to a button because I have a search feature that automatically extracts matching records. The search button can't be clicked when you are still typing in a name in the criteria bit. Is there any way to assign a macro to a cell to resolbve this>? thanks

  2. #2
    Forum Contributor
    Join Date
    09-05-2004
    Location
    Melbourne
    Posts
    193
    You could use a Worksheet_Event but this won't trigger a macro until the editing in the cell has finished. I don't think macros can run while Excel is in editing mode.

    Hope this helps

  3. #3
    Registered User
    Join Date
    03-24-2005
    Posts
    3
    You can assign it to a cell by putting it into a User defined function or UDF.
    For this you have to use the VBA editor. Define the Functionname and replace the "SUB" with Function. I hope it works.

    Yeb

+ 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