I
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Hide Duplicate Rows
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Hide Duplicate Rows
- This topic has 7 replies, 4 voices, and was last updated 21 years, 3 months ago.
AuthorTopicWSsobershe
AskWoody LoungerMarch 6, 2001 at 11:35 am #353565Viewing 2 reply threadsAuthorReplies-
WSBrooke
AskWoody Lounger -
WSLeif
AskWoody Lounger -
WSBrooke
AskWoody LoungerMarch 6, 2001 at 12:08 pm #517530Hiya,
This worked for me
Sub Hide_Dup_Rows()
Dim lRow As Long
Dim lRows As Long
Dim lcol As Long
Dim CurrRow As LonglRow = Selection.Row
lRows = Selection.Rows.Count
lcol = Selection.ColumnFor CurrRow = lRow + 1 To lRow + lRows – 1
If ActiveSheet.Cells(CurrRow, lcol).Value = ActiveSheet.Cells(CurrRow – 1, lcol).Value Then
Rows(CurrRow).EntireRow.Hidden = True
End If
Next CurrRowMsgBox “done:”
End Sub
HTH
Brooke -
WSsobershe
AskWoody Lounger -
WSBrooke
AskWoody LoungerJanuary 5, 2004 at 7:34 am #517662Sherry,
Variables such as lrow can be defined as having a certain type – string or integer for instance. declaring them enables vba to work faster with them – if you don’t then it assigns the variable type variant, which takes slightly longer to work with. Each type of variable has it’s advantages and disadvantages. Very broadly speaking, the advantage is what it allows you to do and the disadvantage is the amount of memory declaring it as that type costs. Long is a numeric variable type that has the range (2,147,483,648) to 2,147,483,647 (to quote help). I would have declared lrow as type integer until about a year ago, but integer types only have a range from (32,768) to 32,768 – making it conceivable that you could (on occaision) run into problems in the routine under discussion – added to which, discussion in the lounge seems to indicate that integer really isn’t worth bothering with.
In the absence of any other comments from others here who have a better grasp on these things than me, point vba help at the phrase ‘Data Type Summary’ – enter ‘data types’ in the index, click display and then look for ‘data type summary’.
HTH
Brooke
-
WSsobershe
AskWoody Lounger
-
-
-
-
-
H. Legare Coleman
AskWoody Plus
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Windows Updater question
by
Tex265
1 hour, 41 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
8 hours, 35 minutes ago -
Registry Patches for Windows 10
by
Drcard:))
13 hours, 6 minutes ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
13 hours, 19 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
6 hours, 28 minutes ago -
Align objects on a OneNote page
by
CWBillow
18 hours, 34 minutes ago -
OneNote Send To button?
by
CWBillow
19 hours, 18 minutes ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 3 hours ago -
No Newsletters since 27 January
by
rog7
23 hours, 48 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
4 hours, 23 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
3 hours, 3 minutes ago -
Google One Storage Questions
by
LHiggins
4 hours, 25 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
3 hours, 45 minutes ago -
Ancient SSD thinks it’s new
by
WSila
8 hours, 59 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
1 day, 18 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
1 day, 11 hours ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 2 hours ago -
Firefox 137
by
Charlie
5 hours, 24 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 days, 7 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 days, 7 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 days, 7 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 3 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 days, 10 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
2 days, 16 hours ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
3 days, 3 hours ago -
Office apps read-only for family members
by
b
3 days, 5 hours ago -
Defunct domain for Microsoft account
by
CWBillow
3 days, 2 hours ago -
24H2??
by
CWBillow
1 day, 3 hours ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
22 hours, 53 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
1 day, 2 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.