Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Dynamic Listing

Hey guys,

Its been a while. Hope everyone is doing well. Anyway
here is what I need. I need a code that will look in cell
AA3, AJ3, AS3, BB1, etc... (this is every other 9th cell
going towards the right until the end of the
spreadsheet). I need the code to look in all these cells
and then list the cell values in a vertical range starting
in cell Y4.


Thank you

Todd Huttenstine
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dynamic Listing

Sub Copy9th()
Set rng = Range("AA3")
Set rng1 = Range("y4")
For i = 0 To 25
rng1.Offset(i, 0).Value = _
rng.Offset(0, i * 9).Address
Next

End Sub


--
Regards,
Tom Ogilvy

"todd Huttenstine" wrote in message
...
Hey guys,

Its been a while. Hope everyone is doing well. Anyway
here is what I need. I need a code that will look in cell
AA3, AJ3, AS3, BB1, etc... (this is every other 9th cell
going towards the right until the end of the
spreadsheet). I need the code to look in all these cells
and then list the cell values in a vertical range starting
in cell Y4.


Thank you

Todd Huttenstine



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Dynamic Listing

Thanx.

-----Original Message-----
Sub Copy9th()
Set rng = Range("AA3")
Set rng1 = Range("y4")
For i = 0 To 25
rng1.Offset(i, 0).Value = _
rng.Offset(0, i * 9).Address
Next

End Sub


--
Regards,
Tom Ogilvy

"todd Huttenstine"

wrote in message
...
Hey guys,

Its been a while. Hope everyone is doing well. Anyway
here is what I need. I need a code that will look in

cell
AA3, AJ3, AS3, BB1, etc... (this is every other 9th cell
going towards the right until the end of the
spreadsheet). I need the code to look in all these

cells
and then list the cell values in a vertical range

starting
in cell Y4.


Thank you

Todd Huttenstine



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dynamic Listing

Change Address to value - that was for testing

Sub Copy9th()
Set rng = Range("AA3")
Set rng1 = Range("y4")
For i = 0 To 25
rng1.Offset(i, 0).Value = _
rng.Offset(0, i * 9).value
Next

End Sub

--
Regards,
Tom Ogilvy


"Todd Huttenstine" wrote in message
...
Thanx.

-----Original Message-----
Sub Copy9th()
Set rng = Range("AA3")
Set rng1 = Range("y4")
For i = 0 To 25
rng1.Offset(i, 0).Value = _
rng.Offset(0, i * 9).Address
Next

End Sub


--
Regards,
Tom Ogilvy

"todd Huttenstine"

wrote in message
...
Hey guys,

Its been a while. Hope everyone is doing well. Anyway
here is what I need. I need a code that will look in

cell
AA3, AJ3, AS3, BB1, etc... (this is every other 9th cell
going towards the right until the end of the
spreadsheet). I need the code to look in all these

cells
and then list the cell values in a vertical range

starting
in cell Y4.


Thank you

Todd Huttenstine



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Dynamic Listing

hey Tom

What is the significance of 25 in the 0 to 25 part of the
code?

And also I dont unmderstand the (0, i * 9) in the below
part of the code. Can you please tell me how this works?

rng1.Offset(i, 0).Value = _
Rng.Offset(0, i * 9).Value


-----Original Message-----
Sub Copy9th()
Set rng = Range("AA3")
Set rng1 = Range("y4")
For i = 0 To 25
rng1.Offset(i, 0).Value = _
rng.Offset(0, i * 9).Address
Next

End Sub


--
Regards,
Tom Ogilvy

"todd Huttenstine"

wrote in message
...
Hey guys,

Its been a while. Hope everyone is doing well. Anyway
here is what I need. I need a code that will look in

cell
AA3, AJ3, AS3, BB1, etc... (this is every other 9th cell
going towards the right until the end of the
spreadsheet). I need the code to look in all these

cells
and then list the cell values in a vertical range

starting
in cell Y4.


Thank you

Todd Huttenstine



.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dynamic Listing

0 to 25 takes you from AA3 to IR3 (can't go past that)

you want count by 9 going across the columns, so i*9 does that.

Regards,
Tom Ogilvy



"Todd Huttenstine" wrote in message
...
hey Tom

What is the significance of 25 in the 0 to 25 part of the
code?

And also I dont unmderstand the (0, i * 9) in the below
part of the code. Can you please tell me how this works?

rng1.Offset(i, 0).Value = _
Rng.Offset(0, i * 9).Value


-----Original Message-----
Sub Copy9th()
Set rng = Range("AA3")
Set rng1 = Range("y4")
For i = 0 To 25
rng1.Offset(i, 0).Value = _
rng.Offset(0, i * 9).Address
Next

End Sub


--
Regards,
Tom Ogilvy

"todd Huttenstine"

wrote in message
...
Hey guys,

Its been a while. Hope everyone is doing well. Anyway
here is what I need. I need a code that will look in

cell
AA3, AJ3, AS3, BB1, etc... (this is every other 9th cell
going towards the right until the end of the
spreadsheet). I need the code to look in all these

cells
and then list the cell values in a vertical range

starting
in cell Y4.


Thank you

Todd Huttenstine



.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Dynamic Listing

Hi
try
Sub foo()
Dim index As Integer
For index = 0 To 25
Cells(4 + index, "Y").Value = _
Cells(3, 27 + (9 * index)).Value
Next
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

todd Huttenstine wrote:
Hey guys,

Its been a while. Hope everyone is doing well. Anyway
here is what I need. I need a code that will look in cell
AA3, AJ3, AS3, BB1, etc... (this is every other 9th cell
going towards the right until the end of the
spreadsheet). I need the code to look in all these cells
and then list the cell values in a vertical range starting
in cell Y4.


Thank you

Todd Huttenstine

Reply
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
Dynamic pivot table linked to dynamic excel spreadsheets FErd Excel Worksheet Functions 0 April 29th 10 10:44 PM
Dynamic chart pasted to a new workbook in report can't be dynamic Piotr (Peter)[_2_] Charts and Charting in Excel 2 August 6th 08 05:15 AM
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
sum and listing Andreas5516 Excel Discussion (Misc queries) 2 February 4th 05 10:44 PM


All times are GMT +1. The time now is 08:20 PM.

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"