Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7952927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:00:37+00:00 2026-06-04T03:00:37+00:00

Update: If I defined range as input_range from A2:P29. Then If Enter in row

  • 0

Update:
If I defined range as input_range from A2:P29. Then If Enter in row 30, then it works. However, the Input_range is not automatically extended and I would like to shift the whole row down not only last row in the range. How could I achieve these two things?

Previous question

Starting with the help of Siddharth Rout, I am able to make this work on new Excel file. However, no matter what I tried on this file

Sample Excel File – it just does not work. I guess there is some kind of structure to prevent from automating adding row. If so, how can I am able to make the code work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:00:39+00:00Added an answer on June 4, 2026 at 3:00 am

    When you’re detecting the Worksheet_Change() event, you need to have your code in the worksheet object, not in a module.

    Here’s how to do it:

    1. Alt-F11 to open the VBA editor
    2. Copy the Worksheet_Change() sub from Module1
    3. Double-click on Sheet6(itemmaster)
    4. Paste the code in there

    Make sure you see Worksheet and Change in the two drop-downs at the top of the editor.

    Note: you should always have Option Explicit turned on to require variable declaration. Read this answer to see how to do it: https://stackoverflow.com/a/10653204/138938

    Screen-shot of code in worksheet instead of module

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(update) ICustomTypeDescriptor works for my Windows Forms app, but not for Silverlight; Not supported.
If I have an object defined as: var myObj={}; Then, I update this object
I don't know why, but CLR User Defined Functions are not allowed to update
I want to update an attribute defined by a variable in an activerecord model.
UPDATE!!! Suggested answer is NOT correct, my mistake. The #container DIV should've had float:left;.
********Update to Question********** If the tableview does not affect the model: Are the index
I have a few controls defined inside an update panel which are bound to
I'm using SqlBulkCopy to insert/update from a .net DataTable object to a SQL Server
I have to update a strictly defined (e.g. can't alter the format) XML document.
right now I have min, max value from table1 that defines the range of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.