+ Reply to Thread
Results 1 to 4 of 4

code wont run or start

  1. #1
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    code wont run or start

    think someone can give me a hand I cant seem to get this code to fire, any chaNCE I'm missing something?




    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: code wont run or start

    Hi
    The macro fires if it's in a worksheet module, but throws errors.
    Post a sample workbook of what you have so we can see what you're trying to achieve

    Phil

  3. #3
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    Re: code wont run or start

    see attached i put it in the workbook module as i would like it to fire on every sheet
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: code wont run or start

    Hi Sparky,

    Put your code in a Module with a name like "FireMe". Then behind each sheet on the Worksheet_Activate event, Call FireMe. I think that is what you are trying to do. Code behind each sheet can only work on/in that individual sheet. Code in a module can work across sheets.

    I think the problem lies within this page:
    http://www.cpearson.com/excel/codemods.htm
    Last edited by MarvinP; 02-14-2016 at 02:46 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] Code wont work in new workbook
    By richard11153 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2016, 05:37 PM
  2. [SOLVED] code wont compile
    By rmb623 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2014, 11:52 PM
  3. [SOLVED] Following code wont even appear in my macro list... why?
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2012, 10:19 AM
  4. Code adds data but wont find it again
    By Tony Vargo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2011, 06:36 AM
  5. VBA code wont run on protected worksheet?
    By Paul Thomson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2010, 08:32 AM
  6. Code wont Run
    By test1986 in forum Excel General
    Replies: 3
    Last Post: 10-25-2006, 07:31 AM
  7. Why wont this code work?
    By Mark Stephens in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2005, 02:06 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