Making a table

  • Thread starter Thread starter Kepler
  • Start date Start date
K

Kepler

Hi,

Given some results, I want to build a table in Excel. How can I do
this? The first line, from A1:J1 will have a content in each cell;
A2:J2, A3:J3, etc...will have similar formula contents. The process
must be conducted by an IF statement ( otherwise it would fill the
entire sheet).

Can anyone help me out?

Kind regards,

Kepler
 
Sometimes the macro recorder can be your friend. To show you, I just
recorded this
Sub Macro3()
'
' Macro3 Macro
' Macro recorded 12/10/2005 by Don Guillett
'

'
Range("H1:I1").Select
Selection.AutoFill Destination:=Range("H1:I10"), Type:=xlFillDefault
Range("H1:I10").Select
End Sub

which may then be refined by removing selections
Sub filldown()
Range("H1:I1").AutoFill Range("H1:I10")
End Sub

You would have to give more info on what determines the last row to fill to
such as

lastrow=cells(rows.count,"a").end(xlup).row
Range("H1:I1").AutoFill Range("H1:I" & lastrow)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top