+ Reply to Thread
Results 1 to 3 of 3

Need to insert.

  1. #1
    Registered User
    Join Date
    10-06-2022
    Location
    Texas
    MS-Off Ver
    365
    Posts
    10

    Need to insert.

    Hello,

    I have a budget workbook. Within is an input sheet.

    The way it works is that a date and amount is entered, then there is a category dropdown. When a category is chosen, a macro is ran based on the selection and builds another dropdown (expenses) adjacent.

    Once the expense is chosen, it calculates and copies the amount entered, to a budget sheet.

    This all works great.

    However, what I need to do is insert a new row above this entry and it errors. I have tried a few different methods and nothing will allow me to move that entry down. I could delete it, but I'd prefer there to be a list of all entries spanning down the sheet.

    Here is the code I have in the sheet (not in a module) which runs the macros based on the dropdown selections. I have included one category's expenses as well. I was wondering if my B:B and C:C targets are interfering?

    Please Login or Register  to view this content.
    I am hoping this is an easy beginner fix (I am not a pro by any means).

    Thanks
    Marc

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,826

    Re: Need to insert.

    Quote Originally Posted by raskinsm View Post
    insert a new row above this entry and it errors.
    The code you showed does not have an insert anywhere. Please attach your Excel file, tell us the error number and error message, and indicate which line of code raises the error.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-06-2022
    Location
    Texas
    MS-Off Ver
    365
    Posts
    10

    Re: Need to insert.

    There are two things:
    1. There is personal information in this sheet. Children's names etc.
    2. This issue has nothing to do with existing macros, I can remove all other macros with the exception of the one on the sheet (not a module) which is pasted in the original post, right-click on Row 2, select Insert and it still will not work.

    I tried to attach images but I cannot for some reason.

    Let me rephrase this issue for you.

    On my sheet (not in a module), I have this code:

    Please Login or Register  to view this content.
    All of the Case Macros are presently disabled and there is not an error.

    I navigate to the sheet, I select row 2, right-click it and select Insert.

    I cannot attach images because of quirky limitations, however, I describe what happens:

    This error popup occurs

    Microsoft Visual Basic

    Run-time error '13':

    Type mismatch

    I click Debug

    I am navigated to VBA and this line is highlighted:

    Please Login or Register  to view this content.
    of this line of code

    Please Login or Register  to view this content.
    This occurs if all my other macros are removed from the sheet.

    I just want to insert a row and this (below) will not allow it.
    Please Login or Register  to view this content.

+ 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. Vba that moves cells with text, (up and to left, insert row/ insert copied cell)
    By sergi117 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2018, 03:12 PM
  2. Replies: 5
    Last Post: 08-30-2017, 01:52 PM
  3. Macro insert multiple sheet and insert age band based on numbers
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-01-2017, 01:47 PM
  4. [SOLVED] Enable the Insert icon in Developer tab > Controls > Insert in Excel 2010
    By pedapudipradeep in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2014, 12:41 PM
  5. Replies: 6
    Last Post: 10-02-2014, 06:31 AM
  6. [SOLVED] VBA codes to insert the rows and copy the first entire row text and insert sheet
    By PRADEEPB270 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2013, 05:05 AM
  7. Help - Insert method of Range class failed - Selection.Insert Shift:=xlToRight
    By sandy@excelforum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2012, 11:14 AM

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