+ Reply to Thread
Results 1 to 6 of 6

Add Sheets and Hyperlinks to that sheets with main sheet

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Exclamation Add Sheets and Hyperlinks to that sheets with main sheet

    Hello Everone,

    I am a beginner with VBA, I just want to crate a workbook which contains a Master sheet.
    and a command button, I want a code that command button that when i click the button it shoold add New Sheet. it should ask Inputbox to name that sheet,
    when i name it that name should apper in Master sheet cell (Eg. in Cell A2) and the next cell (Eg. in Cell B2) should have hyperlink for that new sheet. it should be continued while i add the new sheets.

    your help is much appreciated...!!

    Thanks..!!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Add Sheets and Hyperlinks to that sheets with main sheet

    Why do you want the hyperlink in B2? And what should the hyperlink be named? Why not have A2 as the hyperlink itself?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Add Sheets and Hyperlinks to that sheets with main sheet

    Thanks for the reply, Actually I want to Show Sheet Name in cell A2 (Which Newly Created) and it's Hyperlink in B2 cell. named as "Click Here....!!" and it should countinue till i Add the sheets.
    Last edited by deepak.sirsale; 05-07-2013 at 09:38 AM.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Add Sheets and Hyperlinks to that sheets with main sheet

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  5. #5
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Add Sheets and Hyperlinks to that sheets with main sheet

    Thanks Dear... It's Works as what i want......!!! Thank you very much....!!!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Add Sheets and Hyperlinks to that sheets with main sheet

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

+ Reply to Thread

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