Macro for adding a new worksheet that links into front page

tennisc

New Member
Joined
Apr 8, 2013
Messages
2
So I have created a macro where an individual will fill out a form click submit and it will copy the information into a new worksheet; problem is I want the name of the new worksheet and data to feed into the summary page in the front. So as of now when I run the macro a new tab with information gets created but the summary tab is still referencing the previous sheet not the new sheet.

Sheets("Pre-money Valuation template").Copy After:=Sheets("Pre-money Valuation template")
Selection.Copy
ActiveSheet.paste
Range("C14").Select
Application.CutCopyMode = False
strName = ActiveSheet.Range("C14")
ActiveSheet.Name = strName
Sheets("DCVC Quick and Dirty").Select
Rows("4:4").Select
Selection.insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("B5:W5").Select
Selection.Copy
Range("B4").Select
ActiveSheet.paste
Application.CutCopyMode = False
Sheets("DCVC Quick and Dirty").Select
Rows("4:4").Select
Selection.insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("B5:W5").Select
Selection.Copy
Range("B4").Select
ActiveSheet.paste
Application.CutCopyMode = False
Range("B4").Select
ActiveSheet.Range ("C14")
Range("C4").Select
ActiveSheet.Range ("F17")
Range("E4").Select
ActiveSheet.Range ("F18")
Range("B4").Select

End Sub
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,203,059
Messages
6,053,299
Members
444,650
Latest member
bookendinSA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top