Results 1 to 3 of 3

Thread: Need help to add sheet, rename and update in TOC

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0

    Question Need help to add sheet, rename and update in TOC

    Hello,

    I want to create a database spreadsheet for collecting data.

    Tried :
    Code 1: I want a button to add new sheet and rename it by using inputbox. (Done by me)
    Code 2: the table of contents should be updated with name of the newly added sheet.

    Needed Help:
    Code 3: Before adding sheet it should check if sheet name already exists. If not add new sheet, else Msgbox (" Sheets exists") (Help needed)
    In Code 1: (Imp for me) when the input box is cancelled or left blank and clicked ok, the macros should end without adding sheet, else if the number is entered the sheet should be created.(Help needed)
    Also, the patient no entered in the input box should be added in cell.value for cell A2
    In Code 2: The table of contents should not contain Main & Main_1 sheet name and the Sr No should be updates with rows filled. Also the cell should be automated once filled.

    Patients_Details.xlsm

    If somebody could hep me to build such code, it will really help me a lot. And your help is much appreciated.

    Patients_Details.xlsm

    Waiting for replies.

    Thanks,

    Ketan Bhole
    Last edited by kets0985; 07-22-2013 at 06:26 PM.

Similar Threads

  1. Replies: 30
    Last Post: 07-19-2013, 07:52 AM
  2. How to Update Daily Log In Another Sheet
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 6
    Last Post: 04-06-2013, 01:47 PM
  3. Replies: 2
    Last Post: 11-17-2011, 07:49 PM
  4. Rename Filename Through VBA
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 08-30-2011, 08:29 PM
  5. Add Shape With Hyperlink To Another Sheet
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 07-30-2011, 04:51 AM

Posting Permissions

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