+ Reply to Thread
Results 1 to 4 of 4

The code starts automatically when opening the workbook

  1. #1
    Forum Contributor
    Join Date
    05-18-2011
    Location
    Delhi , India
    MS-Off Ver
    Excel 2007
    Posts
    171

    The code starts automatically when opening the workbook

    I have the following code which needs to run only when P1 = 1 , but whenever i start my workbook it runs this code (but only once) even if P1 is not equal to 1. The only problem is when i start my sheet otherwise it works fine.

    Please Login or Register  to view this content.
    Last edited by Sarangsood; 10-22-2013 at 05:29 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: The code starts automatically when opening the workbook

    Please post the code which resides in This Workbook Code window.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    05-18-2011
    Location
    Delhi , India
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: The code starts automatically when opening the workbook

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-18-2011
    Location
    Delhi , India
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: The code starts automatically when opening the workbook

    oops i think i got my mistake

+ 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. Automatically Run Macro on opening workbook
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2013, 12:06 PM
  2. [SOLVED] Method 'Range' Error When Code is Run Automatically When Opening Workbook
    By TBrooker in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-26-2013, 02:46 PM
  3. to run a macro automatically on opening a workbook
    By kmlprtsngh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2010, 05:42 AM
  4. Automatically opening a workbook.
    By Kenny07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 08:48 AM
  5. [SOLVED] automatically opening workbook
    By Pinnacle in forum Excel General
    Replies: 1
    Last Post: 05-19-2005, 08: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