Solved

Can't select some rows after deletion above them

Posted on 2013-05-14
4
207 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

623 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