Solved

Can't select some rows after deletion above them

Posted on 2013-05-14
4
192 Views
Last Modified: 2013-05-22
Please run the following test on the attached workbook which was created in Excel 2010:
1. Press the Help button
2. Now press it again to hide the Help. Actually, it is deleted.
3. Place the cursor in row 3, any column, and tap the down-arrow repeatedly. Everything should be normal until you reach row 11 when the background color changes. In row 13 the selection disappears. In reappears partially in row 27 and fully in row 28, with a shadow of the selection square remaining in row 27.
No such behavior can be observed while Help is visible (click the button again), nor if you restart Excel. The odd rows between 11 and 27 can be deleted to cure the problem but it will reappear after hiding the Help.
I have half a dozen sheets, all with the same problem, but it appears in different rows and seems to affect fewer rows, where the cursor disappears, when the Help is bigger. I am at a loss at how to deal with this problem. Any ideas?
Worksheet-Help.xlsm
0
Comment
Question by:Faustulus
  • 3
4 Comments
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39167198
Hi,

Just for information:

I opened your attachment in Microsoft Excel 2003 (with Service Pack 3) within Windows 7 Professional (64-bit) & (after conversion) no issues (as you described) were seen.  The workbook functions as expected.

I have attached the converted workbook so you can try re-opening in MS-Excel 2010.

BFN,

fp.
Converted.xlsm
0
 
LVL 14

Author Comment

by:Faustulus
ID: 39168241
thank you fp. The converted workbook you attached shows the same irregularities as as the workbooks in which I have the code myself, and as described in my original post. I find it interesting, though, that the problem doesn't seem to crop up in Excel 2003.
I run Win 7 Home Edition (64-bit) on the laptop where I am currently testing.
0
 
LVL 14

Accepted Solution

by:
Faustulus earned 0 total points
ID: 39169631
It appears that the fault is caused by this code:-
        Set DelRng = Range(WsT.Rows(NlbInsRow), WsT.Rows(R - 1))
        DelRng.Delete

Open in new window

I have replaced it with the following and that cured the problem.
        For n = NlbInsRow To R - 1
            WsT.Rows(NlbInsRow).EntireRow.Delete
        Next n

Open in new window

I think this is a work-around rather than a cure and would like to award points for showing me how to set DelRng in a way that I can properly use DelRng.Delete.
0
 
LVL 14

Author Closing Comment

by:Faustulus
ID: 39186832
Nobody answered my question.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question