+ Reply to Thread
Results 1 to 5 of 5

Import module code to sheets module ?

  1. #1
    Registered User
    Join Date
    11-03-2012
    Location
    Poland
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    11

    Import module code to sheets module ?

    Hello quick question how to import vba code directly to sheets module..??

    Please Login or Register  to view this content.
    this is code for exporting module an importing module ( as standard module )
    does any one know how to import standard module to specific Sheets module ???


    Best Regards

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Import module code to sheets module ?

    Why do you want to do this? There's probably a better way

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Import module code to sheets module ?

    Duplicate post

  4. #4
    Registered User
    Join Date
    11-03-2012
    Location
    Poland
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    11

    Re: Import module code to sheets module ?

    i want to do this because i need to use..
    Please Login or Register  to view this content.
    and this must be in specific sheet module

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Import module code to sheets module ?

    this must be in specific sheet module
    Why?

    You can use the Workbook_SheetChange event in the ThisWorkbook class to determine which sheet was changed and run code depending on that.

    Totally ignoring the security implications of allowing code to change the project.

+ 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. [SOLVED] Import module then run code not working.
    By R-Enemy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2015, 06:08 PM
  2. Import Code Module
    By macdonab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2015, 05:39 PM
  3. [SOLVED] Code locks cells when inserted in sheet module but returns error in standard module
    By yoda66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2014, 07:39 AM
  4. how to access Sheet module, normal module, Worbook module to type code
    By alibaba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2009, 07:51 AM
  5. Replies: 4
    Last Post: 12-11-2005, 08:00 PM
  6. Run worksheet module code from workbook module?
    By keithb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2005, 12:05 AM
  7. Replies: 1
    Last Post: 04-10-2005, 07:07 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