Nevermind, I got it. Problem was not with the Range definition, but with a loop I had in the rest of my code which cut out after the first cell. Thanks!
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Range Syntax (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Range Syntax (2000)
- This topic has 3 replies, 2 voices, and was last updated 22 years, 7 months ago.
AuthorTopicWSMichaelRead
AskWoody LoungerSeptember 23, 2002 at 3:56 pm #376916Viewing 0 reply threadsAuthorReplies-
WSMichaelRead
AskWoody LoungerSeptember 23, 2002 at 5:27 pm #619096In the code excerpt below I am ensuring that if the user enters a credit invoice, all of the entries in the same row are negative.
For Each cell In ThisWorkbook.Sheets("Journal").Range("b8:b64") If cell.Value = "PFC Credit Memo" Or cell.Value = "Pilgrims Credit Inv" Then For Each cellr In ThisWorkbook.Sheets("Journal"). _ Range(Cells(cell.Row, 4), Cells(cell.Row, 15)) If cellr.Value > 0 Then cellr.Value = cellr.Value - (cellr.Value * 2) Next End If Next
However, the last part of the Range definition in red above does not seem to take all the way out to the end of the row.
Actually, the first cellr (cell.Row, 4) changes, but the rest of the Range does not. How do I refer to the Range to make
it take each cellr in the entire Range? -
WSsdckapr
AskWoody LoungerSeptember 23, 2002 at 4:01 pm #619139I am not sure what you need or what the problem is could you give more details>
The code in red checks in:
Cols D – O in rows that have either a row that that PFC Credit Memo or Pilgrims Credit Inv in Col BIf the value in the cell is > 0 it subtracts double the current value from it. (why don’t you just use “-cellr.value”?) and then goes to the next cell.
Steve
-
WSMichaelRead
AskWoody Lounger
-
-
Viewing 0 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
-
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
2 hours, 22 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 hours, 38 minutes ago -
The story of Windows Longhorn
by
Cybertooth
4 hours, 8 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
5 hours, 37 minutes ago -
Are manuals extinct?
by
Susan Bradley
43 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
14 hours, 45 minutes ago -
Network Issue
by
Casey H
1 hour, 50 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 2 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 3 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 5 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
5 hours, 59 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 7 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 7 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 14 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
7 hours, 4 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 2 hours ago -
How much I spent on the Mac mini
by
Will Fastie
1 day, 1 hour ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
5 hours, 5 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 7 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 2 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 3 hours ago -
Powershell version?
by
CWBillow
2 days, 4 hours ago -
SendTom Toys
by
CWBillow
15 hours, 5 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 8 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
3 days ago -
How can I install Skype on Windows 7?
by
Help
2 days, 23 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 days, 6 hours ago -
We live in a simulation
by
Alex5723
3 days, 14 hours ago -
Netplwiz not working
by
RetiredGeek
3 days, 1 hour ago -
Windows 11 24H2 is broadly available
by
Alex5723
4 days, 3 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.