+ Reply to Thread
Results 1 to 3 of 3

No error message but Code not working

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    No error message but Code not working

    Hello friends,
    I have inserted a code in "Access" sheet module to change row, insert dash and delete dash but the change row code is not working. I'm getting the correct result of first two codes namely 'insert dash' and 'delete dash' but not getting the result of third code namely 'change row'. There is no error in code but it's not working. I want to change the row when I enter any data in column 'y' and press enter or tab or right arrow . It's working fine in a separate sheet but not in this sheet.

    Please correct my mistake in inserting the code.

    Thanking you in anticipation.

    Mukesh
    Attached Files Attached Files

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: No error message but Code not working

    Hi, Mukesh ,

    if you want your own event to get fired you should apply Class Programming to make it work - if you change to another sheet module and check what events are available youŽll find there is no Private Sub Worksheet_Changerow(ByVal Target As Range). So Excel doesnŽt recognize that event.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: No error message but Code not working

    Hello HaHoBe,
    Thank you for your response. My problem is solved now. I simply merge two codes second and third by deleting end sub of second code and first line of third code.

    It's working fine now.

    Thank you.

    Mukesh

+ 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. how to fix code for multiple cells to have error message
    By 3earth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-27-2013, 11:20 AM
  2. VBA code created in Excel 2003, not working in Excel 2010, Getting error message 400.
    By rajeshapril14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-24-2012, 05:19 AM
  3. Code to answer No to an error message
    By boohah in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-12-2010, 09:21 AM
  4. VBA bug - code exits sub before completion - no error message
    By stefsj in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-28-2010, 01:26 PM
  5. 'Loop without do' error message (code inside)
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2009, 07:16 AM

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