Results 1 to 2 of 2

Naming New Sheets with Multiple Submissions

Threaded View

  1. #1
    Registered User
    Join Date
    05-10-2017
    Location
    Columbus, OH
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Naming New Sheets with Multiple Submissions

    Hello,

    Thank you in advance for your help

    Objective:
    -Copy the range from "Form" to a new sheet when the user hits a button
    -Name the new sheet based on a cell value & number

    Example:
    -User conducted a focus group, filled out the form, hits a "Submit" button. "Focus group" is in cell B2.
    -I need the new sheet to be named "Focus Group 1"
    -User conducts a 2nd focus group and hits "Submit"
    -I need the new sheet to be named "Focus Group 2"

    Current State:
    -The code copies and pastes on a new sheet named "Sheet #"
    -This is code I pulled together from multiple websites. I'm happy to see feedback to make the code cleaner. I'm very new to this.

    Function CopyForm()
    Worksheets.Add after:=Worksheets(Worksheets.Count), Count:=1
    Sheets("Form").Range("A1:O100").Copy
    With Sheets(Worksheets.Count).Range("A1:O100")
        .PasteSpecial xlPasteColumnWidths
        .PasteSpecial xlPasteAll
    End With
    End Function
    Last edited by glidlegolas; 05-31-2017 at 02:39 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. multiple sheets and naming cells
    By Bell_1515++** in forum Excel General
    Replies: 2
    Last Post: 03-31-2016, 01:38 AM
  2. Need help with copying rows, replicating sheets, naming sheets and assigning print area...
    By Navin Agrawal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2014, 09:21 AM
  3. Auto Populating sheets with data from submissions
    By inbatropix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2014, 05:18 PM
  4. [SOLVED] Vba to advance filter data on multiple conditions to many sheets with naming convention
    By 4gurus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2013, 01:01 PM
  5. Web Query with Submissions
    By higgins.trust in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2010, 06:10 PM
  6. Re-Naming Sheets per Cell data & Hiding Sheets
    By dej222 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2009, 10:20 PM
  7. [SOLVED] Naming multiple sheets in a workbook using cells within the workbo
    By amyc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2005, 09:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1