Results 1 to 3 of 3

New Sheet acording to Cell name/value VBA

Threaded View

  1. #1
    Registered User
    Join Date
    09-04-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    23

    New Sheet acording to Cell name/value VBA

    Hi all i just wanted a simple help on VBA

    I got Sheet1 with a CommandButton and a fill in space lets say A1

    I want this button to create a sheet named "Test x" according to whats inserted on A1 either its number or text.

    I came up witht this to that allows me to input 1 new sheet with a pre-defined name.

    I know that i need to set Range to get the A1 cell info, but how to ?

    Private Sub CommandButton1_Click()
    
    Dim AddAsLastWorksheet()
    
    Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = "Test 1"
    
    End Sub
    Attached Files Attached Files
    Last edited by phoztek; 10-20-2009 at 06:43 AM.

Thread Information

Users Browsing this Thread

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

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