Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't select some rows after deletion above them

Posted on 2013-05-14
4
Medium Priority
?
210 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
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…

715 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