LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 896
Default Simple Macro to "Lookup - Repeat"

try:

Sub cus()
Dim counter As Integer
Dim i As Integer
Dim cell As Range

For Each cell In Sheets("A").Columns(5).Cells
If Len(cell) 0 Then
For i = 1 To 8
counter = counter + 1
Sheets("B").Cells(4 + counter, 1) = cell
Next i
Else
Exit Sub
End If
Next cell

End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how does this formula work: =LOOKUP(2,1/((COUNTIF(D6:D41,""&D6:D41)=0)*(D6:D41<"")),D6:D41) Dave F[_2_] Excel Discussion (Misc queries) 7 February 1st 09 03:42 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Replacing "IF" or "LOOKUP" formula's with VBA Function? dhunter43 Excel Programming 0 August 10th 07 06:52 PM
Replacing "IF" or "Lookup" formulas with VBA function dhunter43 Excel Programming 6 August 10th 07 06:22 PM
Read ".dll" files, the Macro "work flow" and the actual values of the variables when Macro is running [email protected] Excel Programming 5 May 16th 07 08:18 PM


All times are GMT +1. The time now is 02:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"