ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do I fill series on different sheets (https://www.excelbanter.com/excel-worksheet-functions/244714-how-do-i-fill-series-different-sheets.html)

Wayne Palmer

how do I fill series on different sheets
 
In excel I want to fill a series of numbers across different sheets in a
workbook.i.e. in sheet 1 cell C3 i want 816500-002 and in sheet 2 cell C3 I
want 816500-003 and so on, how do you do it, can it be done, please help.

Wayne.

Gord Dibben

how do I fill series on different sheets
 
Sub String_Increment()
Dim myStr As String
Dim iCtr As Long
myStr = "816500 - 00"
For iCtr = 1 To ActiveWorkbook.Worksheets.Count
With Worksheets(iCtr).Range("C3")
.Value = myStr & iCtr + 1
End With
Next iCtr
End Sub


Gord Dibben MS Excel MVP


On Tue, 6 Oct 2009 07:01:02 -0700, Wayne Palmer
wrote:

In excel I want to fill a series of numbers across different sheets in a
workbook.i.e. in sheet 1 cell C3 i want 816500-002 and in sheet 2 cell C3 I
want 816500-003 and so on, how do you do it, can it be done, please help.

Wayne.



Don Guillett

how do I fill series on different sheets
 
Sub fillinsheets()
For i = 1 To Sheets.Count
Sheets(i).Range("c3").Value = "816500-00" & i + 1
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wayne Palmer" wrote in message
...
In excel I want to fill a series of numbers across different sheets in a
workbook.i.e. in sheet 1 cell C3 i want 816500-002 and in sheet 2 cell C3
I
want 816500-003 and so on, how do you do it, can it be done, please help.

Wayne.




All times are GMT +1. The time now is 04:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com