VBA macro examples in Excel

Contents
Introduction
Fill cells with values

After enabling the Developer tab, you can write and run VBA macros. In this article, you will fill cells with values.

Fill cells with values

After enabling the Developer tab, you can write and run VBA macros.

Fill cells with values

Sub fill_cells() Dim i As Integer For i = 1 To 1000 Cells(i, 7).Value = "&#" Cells(i, 8).Value = i Cells(i, 9).Value = ";" Next i End Sub

Article author: Andrei Olegovich

Related articles
Microsoft Office
Microsoft Excel
Alternate row colors
Enable the Developer tab
VBA examples
Sort numbers correctly
Paste Special shortcuts
VBA examples
Alternate row colors
Enable the Developer tab
Color a drop-down list
Sort numbers correctly
Everything disappeared
Insert a line break in a cell
Fix an Excel filter
Microsoft Word
Microsoft PowerPoint

Search this site

Channel @aofeed Chat @aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: