First, I apologize, but I'm not versed in any kind of programming but I have the unfortunate job of supporting things with programming The spreadsheet in question was created by someone who is no longer available to support it so any help you can give would be greatly appreciated.
When the macro is used, it gives this error:
"Microsoft Visual Basic
Run-time error '1004':
To prevent possible loss of data, Excel cannot shift nonblank cells off of the worksheet. Select another location in which to insert new cells, or delete data from the end of your worksheet.
If you do not have data in cells that can be shifted off of the worksheet, you can reset which cells Excel considers nonblank. To do this, press CTRL+End to locate the last nonblank cell on the" (the rest is cut off)
It's supposed to take the row where you enter data and insert it in the table area below it after inserting a new row in which to paste it.
When I click to debug, the bold row below is highlighted.
I know that "Selection.Offset(1, 0)" inserts a single new row and if I change "If Selection.Offset(x, 0)." to "If Selection.Offset(1, 0).", the macro works but doesn't insert the row in the right place and having NO programming knowledge other than what I decode and figure out myself, so I don't even know what this "For x = 0 To y" business means.Please Login or Register to view this content.
Moderator's Note: Welcome to the forum, you have to put code tags around your codes. Select the code the hit the "#" sign
Bookmarks