I am new to EXCEL vba and am trying to locate the next blank cell in a column using vba code. Once the next the blank cell is located, I am copying data, from another work sheet in the same file, across many columns in that row (i.e., columns A thru K). For example if A10, is the next blank cell in column A, the macro needs to make this the active cell. My present routine identifies the last row with data (i.e., A9 in my simple example) and keeps copying different data over the same cells (i.e., over writing data and the table never grows beyond row 9). Sorry for this simple question, but after an hour of work, I have given up. THANKS for your patience with those just starting the learning, er, struggling process..
![]() |
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 |
-
Find current blank cell (97)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Find current blank cell (97)
- This topic has 2 replies, 3 voices, and was last updated 22 years, 2 months ago.
AuthorTopicJimmyc5559
AskWoody PlusFebruary 25, 2003 at 9:40 pm #383931Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerFebruary 25, 2003 at 10:02 pm #656633If you want to find the first blank cell below A1, you can use:
Dim oCell As Range
Set oCell = Range(“A1”).End(xlDown).Offset(1, 0)End(xlDown) is the code equivalent of hitting the End key followed by the Arrow Down key. Offset(1, 0) then returns the cell 1 row down (and 0 columnd to the right, i.e. in the same column.) In most cases, you don’t need to select a cell or range to manipulate its contents. Methods like Copy and Paste work on ranges, and not selecting a range actually speeds up execution. But if you do need to select the cell, add
oCell.Select
If you want to find the blank cell below the last filled cell in column A, use
Dim oCell As Range
Set oCell = Range(“A65535”).End(xlUp).Offset(1,0)If for instance A1:A9 and A13:A18 are filled, this will return a reference to cell A19, while the first method would return a reference to cell A10.
-
H. Legare Coleman
AskWoody PlusFebruary 26, 2003 at 2:51 am #656668Do you want the next blank cell in the column, or the cell after the last used cell in the column? Those will be different if there are any empty cells before the last used cell. If you want the cell after the last used cell in column A, then the following will give that:
Worksheets("Sheet1").Range("A65536").End(xlUp).Offset(1,0)
BTW, it is almost never necessary to select a cell in VBA to do something with that cell, and it is always much faster and better not to if you don’t have to.
Viewing 1 reply thread -

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
6 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
44 minutes ago -
The story of Windows Longhorn
by
Cybertooth
1 hour, 13 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 hours, 42 minutes ago -
Are manuals extinct?
by
Susan Bradley
57 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
11 hours, 50 minutes ago -
Network Issue
by
Casey H
3 hours, 53 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
23 hours, 50 minutes ago -
May 2025 Office non-Security updates
by
PKCano
1 day ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 2 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
3 hours, 4 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 4 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 4 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 11 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
4 hours, 9 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 23 hours ago -
How much I spent on the Mac mini
by
Will Fastie
22 hours, 32 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
17 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 4 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days ago -
Powershell version?
by
CWBillow
2 days, 1 hour ago -
SendTom Toys
by
CWBillow
12 hours, 11 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 5 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 21 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 20 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 days, 3 hours ago -
We live in a simulation
by
Alex5723
3 days, 11 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 22 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
4 days 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.