Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can't select some rows after deletion above them

Posted on 2013-05-14
4
Medium Priority
?
213 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

971 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