Solved

Can't select some rows after deletion above them

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel VBA - UserForm control click 12 35
integer8 values 1 10
Gantt chart 2 16
Excel 2016 Hiding Toolbars 7 22
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
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…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now