Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Arnold Scott   on Oct 24 In MS Office Category.

  
Question Answered By: Milind Mishra   on Oct 24

I'm new to
the VBA stuff, so I'm seeking help. This code was given in another
forum, but I thought it would kind of help  me show what I'm trying
to do.

What I'm trying to accomplish is have the spreadsheet completely
automated. data  can be sent at any time, so the macro will (should)
check to see if the current row  has data. If it does, move to the
next row and copy  the previos row's formula.

I guess this code is worthless for most part.


Public Sub CopyDown()
LastRow = Range("A65536").End(xlUp).Row
For i = 1 To LastRow
If Range("A" & i).Value = "" Then
Range("A" & i - 1 & ":CB" & i - 1).Formula.Copy Destination:=Range
("A" & i)
End If
Next i
End Sub

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on VBA help with data Or get search suggestion and latest updates.


Tagged: