+ Reply to Thread
Results 1 to 4 of 4

Program resets by itself

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    4

    Unhappy Program resets by itself

    This code looks simple but it is causing me trouble.

    Cells(1,25) = Cells(1,25) + 1

    All i wanted is to increment the cell value by 1. The cell has an integer value. It was working fine till yesterday and today when i execute the code, it resets the program and the program starts from the beginning.

    Also another strange behaviour is that when i have my laptop connected to my dock everything works fine. But when i remove from dock, the VBA Button in my sheet increases in size for each press and if i try to reduce the size, then the text in the box reduces in size for each click...

    Guys please help me how to resolve these..

    Thank you.

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

    Re: Program resets by itself

    Hi ajsivan and welcome to the forum,

    Cells(1,25).value = Cells(1,25).value + 1 ?? Might help.

    What if there is text in the cell? What happens then?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    08-29-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Program resets by itself

    What i am trying to do here is, when a new row is inserted, the key field will check for dupliates. if the new entry is a duplicate of previous entry, then it will display a msg box telling that it is a duplicate entry. Else it will display the no of rows inserted/deleted. When the code hits the highlighted line, it resets itself from the beginning.

    The cell will have the row count each time the sheet is activated. So there is no chance of any text over there.


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-29-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Program resets by itself

    It got solved when i changed to another cell.

+ 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. Page Setup Resets
    By Niester Rabbit in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-28-2013, 08:51 PM
  2. New table row resets formatting
    By Kram222 in forum Excel General
    Replies: 0
    Last Post: 09-24-2012, 12:12 AM
  3. Create Order Reference which resets each day
    By Yorksboy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2012, 04:53 PM
  4. Running Total and Resets
    By HyMay1180 in forum Excel General
    Replies: 11
    Last Post: 04-20-2011, 03:49 PM
  5. Save As Default Resets
    By dhd2005 in forum Excel General
    Replies: 2
    Last Post: 10-27-2010, 12:45 PM

Tags for this Thread

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