Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How to insert new worksheet based on # of rows in a data sourch
Hello,
I am trying to get the below VBA code to only copy "form" and create new worksheet based on number of rows with data in my "data" sheet. Is there a way that can be done? Sub Copy_Sheets() Dim i As Integer Dim wks As Worksheet For i = 1 To 45 Sheets("form").Copy After:=Sheets(2) Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert rows based on value per day | Excel Worksheet Functions | |||
How to insert rows based on change in data | Excel Worksheet Functions | |||
Insert new rows based on Data in other rows | Excel Worksheet Functions | |||
Insert Rows Based on values in another worksheet | Excel Discussion (Misc queries) | |||
Excel Data Sourch Setup for Merge | Setting up and Configuration of Excel |