LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Auto fill Sheets

Hello everyone.
I've one doubt that I was hopping someone could help me with.

I used this function to automate creation of 200 sheets in my workbook:

#
Sub New_Sheets()
Dim intNumber As Integer, Counter As Integer
intNumber = _
Application.InputBox("Create how many sheets?", "Number of new sheets", "300")

Application.ScreenUpdating = False
For Counter = 1 To intNumber
Worksheets.Add
Next
Application.ScreenUpdating = True
End Sub
#

I then have one sheet (sheet1) that looks something like this:
A B
1 Name: ID:
2 Mike 123
3 Sam 456
4 Carol 789
5 John 945


I recorded a macro that does the following:

#
Sub Macro1()
'
' Macro1 Macro
'

'
Selection.Copy
Sheets("Sheet2").Select
Range("B1").Select
ActiveSheet.Paste
Sheets("Sheet1").Select
Range("B2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Range("B2").Select
ActiveSheet.Paste
Sheets("Sheet1").Select
Range("A3").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet3").Select
Range("B1").Select
ActiveSheet.Paste
Sheets("Sheet1").Select
Range("B3").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet3").Select
Range("B2").Select
ActiveSheet.Paste
End Sub
#

OK how do I automate this process so it creates a individualized sheet for
each worker? Thanks in advanced
 
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
Auto-fill text - links to other sheets Liz Excel Discussion (Misc queries) 2 September 9th 09 03:04 AM
source sheet to auto fill 2 other sheets GetSFX New Users to Excel 1 August 9th 08 06:05 PM
source sheet to auto fill 2 other sheets GetSFX New Users to Excel 0 August 8th 08 03:49 PM
Working with 2 sheets, need to auto fill 2nd sheet with date from Nai Excel Programming 1 October 28th 07 05:36 AM
Auto Fill Different Sheets same cell on each sheet? confused Excel Discussion (Misc queries) 1 October 6th 07 08:54 AM


All times are GMT +1. The time now is 11:45 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"