Home Excel VB/VBA Add data to cells
20 | 05 | 2012
This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade

Add data to cells PDF Print E-mail
User Rating: / 0
PoorBest 
Tutorials

There are multiple ways to add data to worksheets cells. Below we show you a few examples.

[code]

Sub FillCells()

'****************************************
'*** Code from VisibleVisual.com ********
'****************************************
 
'Add data right by using a cellname for instance cell A1
ActiveSheet.Range("A1") = "Cell A1"
 
'Alternative is to use the cells coordinate Cell(row, column)
ActiveSheet.Cells(3, 4) = "Cell D3" ' Cell(row, column)
 
'--------------------------------------------------
 
'To add data to a multiple collection of cells use
ActiveSheet.Range("C4:C8") = "Cell C4 - C8 "
 
'or use
ActiveSheet.Range("E9, E11, E13") = "Cells E9, E11, E13 "
 
End Sub

 [/code] 


Download project here

 

 

Add comment


Security code
Refresh

This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade