2
Thanks

A few words of thanks would be greatly appreciated.

Excel VBA to Select Empty Cell in a Row

Visual Basic Application or VBA , when used in Microsoft Excel, is an efficient tool, as repetitive jobs can be automated with its help. Users can even write custom VBA code to meet their programming needs. Using interesting properties like offset, one can operate across different cells in Excel. Operations like selecting the next empty cell in a row can be automatically done and in this article we will provide the VBA code to so.


Use VBA Code to Select The Next Empty Cell

Try this VBA code in order to select the next empty cell in a row in Microsoft Excel:

ActiveCell.Value = Player.Value      
Activecell.offset(0,4).value=Score.value

'find last used cell on the row to the right
ActiveCell.End(xlToRight).Select

'move one cell to the right from the last used cell
ActiveCell.Offset(0, 1).Select


Image © 123rf.com
2
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Related

This document, titled « Excel VBA to Select Empty Cell in a Row », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

0 Comments