Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Automate infil of data into a cell on subsequent worksheets. (Again)

I was given the code below,which puts the value from Column A into
subsequent worksheets working down the column.
Value from A1 goes into Worksheet2, A2 goes into Worksheet 3..etc...

How do I change the code such that the source data is in the range C2
downwards.
I.E. What in the code defines the first source of the data?
[I'm guessing it's in this bit Cells(sh.Index - 1, 1). ]

SS



Sub AAAAA()
Dim sh As Worksheet
For Each sh In Sheets
If sh.Index < 1 Then
sh.Range("Cell number you want the data on in each sheet goes in
here").Value = _
Sheets(1).Cells(sh.Index - 1, 1).Value
End If
Next
End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Automate infil of data into a cell on subsequent worksheets. (Again)

Simon,

Try changing
Sheets(1).Cells(sh.Index - 1, 1).Value

to
Sheets(1).Cells(sh.Index, 3).Value


HTH,
Bernie
MS Excel MVP


"simon" wrote in message ...
I was given the code below,which puts the value from Column A into subsequent worksheets working
down the column.
Value from A1 goes into Worksheet2, A2 goes into Worksheet 3..etc...

How do I change the code such that the source data is in the range C2 downwards.
I.E. What in the code defines the first source of the data?
[I'm guessing it's in this bit Cells(sh.Index - 1, 1). ]

SS



Sub AAAAA()
Dim sh As Worksheet
For Each sh In Sheets
If sh.Index < 1 Then
sh.Range("Cell number you want the data on in each sheet goes in here").Value = _
Sheets(1).Cells(sh.Index - 1, 1).Value
End If
Next
End Sub




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
data links on subsequent worksheets TerriK Excel Worksheet Functions 2 April 14th 10 08:10 PM
How can I copy filtered data to subsequent worksheets? Paulo Excel Discussion (Misc queries) 1 March 19th 07 06:09 PM
How i have #10 in cell when previous#5 and subsequent #15 How i have #10 in cell when previous#5 a New Users to Excel 3 February 18th 07 03:02 AM
Automate infil of data into a cell on subsequent worksheets. simon Excel Programming 4 October 20th 05 09:58 PM
Automate a macros when data in a cell changes (e.g.when using quer jwwjd Excel Discussion (Misc queries) 5 June 24th 05 03:06 PM


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

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

About Us

"It's about Microsoft Excel"