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 PlusViewing 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
-
A Funny Thing Happened on the Way to the Forum
by
bbearren
10 hours, 49 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
5 hours, 33 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
1 hour, 48 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
55 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
14 hours, 39 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
23 hours, 21 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
4 hours, 22 minutes ago -
23 and you
by
Max Stul Oppenheimer
11 hours, 37 minutes ago -
April’s deluge of patches
by
Susan Bradley
15 hours, 48 minutes ago -
Windows 11 Windows Updater question
by
Tex265
21 hours, 35 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 20 hours ago -
Registry Patches for Windows 10
by
Drcard:))
2 days ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day, 7 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
16 hours, 52 minutes ago -
Align objects on a OneNote page
by
CWBillow
2 days, 6 hours ago -
OneNote Send To button?
by
CWBillow
2 days, 7 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
2 days, 15 hours ago -
No Newsletters since 27 January
by
rog7
20 hours, 19 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day, 16 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 day, 14 hours ago -
Google One Storage Questions
by
LHiggins
22 hours, 55 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
1 day, 6 hours ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 20 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
17 hours, 8 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
2 days, 14 hours ago -
Firefox 137
by
Charlie
6 hours, 11 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 18 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 19 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 19 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.