Creating Hyperlinks to First Page

razor12

New Member
Joined
Jul 4, 2011
Messages
1
Hi Guys

I am busy trying to write a little excel program where I have a summary page as the first page, I am able to create new sheets on the click of a button, a userform pops up and I enter a name for that new sheet.

Now what I would like to do, is create a button which can take me back to the SUmmary page from my newly created sheet:

this is how my code looks so far:

<!-- BEGIN TEMPLATE: bbcode_code -->
Code:
<STYLE>.alt2 font {font: 11px monospace !important;color: #333 !important;}</STYLE>

Code:
Private Sub CommandButton1_Click()
'
' OpenNewSheet Macro
' Opens new sheet to show detailed audit work.'
' 
Sheets.Add(After:=Sheets(Sheets.Count)).Name = TextBox1 Worksheet.Hide 
TextBox1 = "" 
InsertPictureInRange "C:\Data\Office\My Pictures\pwclogo.gif", Range("A2:C5") 
 
Cells.Borders.LineStyle = xlLineStyleNone 
Cells.Interior.Pattern = xlPatternSolid 
Cells.Interior.PatternColor = RGB(255, 255, 255) 
 
Underline 
PreparedSection 
Save 
End Sub


</PRE><!-- END TEMPLATE: bbcode_code -->
This is my first attempt at using VBA.

I am using a lot of google searching and trial and error to get what i need.

So in the end I want to have my summary page with hyperlinks to each newly created worksheet, then i want a hyperlink/button on each new worksheet to link back to the summary page.

i want the summary page hyperlink to be created on the command click above. Is it possible to insert an image to and create a hyperlink on the image back to the summary page? what would be the easiest thing to do?

I have tried all sorts to try and get a hyperlink back to the summary page, but none have been succesful. ( I have used activesheet.hyperlinks function)

Any help would be greatly appreciated, spent a couple of hours trying to ge tthis seemingly simple thing sorted
confused.gif
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
It looks lıke you creat a sheet every tıme and then run 3 other macros to format it how you want. Why not create a sheet how you want, complete wıth hyperlınked button, then just copy and rename that wıth the ınfo from the user input?
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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