Is there a switch to open a workbook to a specific page

tmort

New Member
Joined
Aug 18, 2002
Messages
13
I have a workbook which is a collection of related sheets. I'd like to keep them all together this way.
I'm putting together a html page which has links to other programs, web sites and this workbook.

In some cases where I link to this workbook I'd like each link to go to a different page withing this workbook. I'm thinking there might be some sort of switch where I could specify the page (and mayber even the active cell).

Can anyone help me with this?

Thanks
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,970
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
On 2002-09-04 05:51, tmort wrote:
I have a workbook which is a collection of related sheets. I'd like to keep them all together this way.
I'm putting together a html page which has links to other programs, web sites and this workbook.

In some cases where I link to this workbook I'd like each link to go to a different page withing this workbook. I'm thinking there might be some sort of switch where I could specify the page (and mayber even the active cell).

Can anyone help me with this?

Thanks

look at hyperlink

You can specify file, sheet, and cell.

See Function and VBA
 

tmort

New Member
Joined
Aug 18, 2002
Messages
13
I see the hypelink function but I don't see the syntax to specify the page or cell address.

I could always link to the workbook just not a specific page and address
 

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,970
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
On 2002-09-04 08:00, tmort wrote:
I see the hypelink function but I don't see the syntax to specify the page or cell address.

I could always link to the workbook just not a specific page and address

see Excel's Help on Hyperlink function

VBA that uses hyperlink

Sub Hyper()
' Dave Patton August 4, 2002
' creates hyperlink with info in Columns C and D
' the "a" is put into the Activecell so full text of Hyperlink does not show

Dim i As Integer
Dim cRow As Long
Dim sHyper1 As String
Dim sHyper2 As String
With ActiveCell
ActiveCell.Formula = "a"
sHyper1 = .Offset(0, -2).Value
sHyper1 = "E:Data02Tech02" & sHyper1 & ".xls"
sHyper2 = .Offset(0, -1).Value
sHyper2 = sHyper2 & "!A1"
.Hyperlinks.Add Anchor:=ActiveCell, Address:=sHyper1, SubAddress:=sHyper2
End With
End Sub



Hope part of this is of some interest.
 

Chris Davison

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,790
You can utilise HTML's anchoring and Excel's named ranges to do this also if you want....

make cell A1 on each page a named range (insert, names, define)

then in your HTML, just anchor it in the HTML hyperlink tag :

link 1

link 2

link 3

link 4

et cetera, et cetera
 

Forum statistics

Threads
1,144,122
Messages
5,722,613
Members
422,447
Latest member
knopp

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
Top