• Privacywetgeving
    Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.

overzicht tapbladen mogelijk in excel?

Status
Niet open voor verdere reacties.

syntychakis

Gebruiker
Lid geworden
7 apr 2009
Berichten
60
Is er bij excel de mogelijkheid (zoals bij word en powerpoint) om aan de linker/rechter kant van de scherm de verschillende tapbladen weer te geven? zoals je met word zeg maar kan
hoofdstuk 1
hoofdstuk 1.1
hoofdstuk 1.1.1

en dan aan de linkerkant

maar dan met excel zoiets?

tapblad 1 "naam tapblad"
tapblad 2 "naam tapblad"
enzovoort...
 
Niet zoals je aangeeft. Dat wordt een handmatige lijst van hyperlinks.
 
dat is wel jammer, want ik heb bijvoorbeeld nu heel tapbladen in 1 excel bestand en ik moet steeds eerste een paar keer klikken voor dat ik op de tapblad ben waar ik wezen meot!
 
Nou SNB heeft mij geloof ik eens de code voor het categoriseren dmv een macro gegeven, deze ben ik kwijt, maar heb er nog wel een waarbij ook direct een hyperlink er aan koppelt! Dus met dank aan SNB:

Sub index()
If Sheets("Index sheet") Then
Sheets("Index Sheet").Delete
End If

X = 0
Sheets.Add
ActiveSheet.Name = "Index Sheet"
ShtCount = ActiveWorkbook.Sheets.Count
For Each ws In Worksheets
If ws.Name <> "Index Sheet" Then
Worksheets("Index Sheet").Range("A2").Offset(X, 0) = ws.Name
Worksheets("Index Sheet").Range("A2").Offset(X, 0).Select
Worksheets("Index Sheet").Range("A2").Offset(X, 0).Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
ws.Name & "!A1", TextToDisplay:=ws.Name
X = X + 1
End If
Next ws



End Sub


Grts
 
wie/wat is SNB?:P als ik op google intyk krijg ik best veel verschillende dingen! van de switserse nationale bank tot slib bewerking noord-brabant:P

Waar moet dat stukje code geplaatst worden eigenlijk!?
 
Moet ik hem als macro in zetten zeg maar?

en dan roepen via Tools; macros enzovoort? dan krijg ik een runtime error!?
 
ow zo ik snap hem!

nog een antwoord op de vorig vraag hoe ik dat stukje code precies moet gebruiken?
 
Je voert de code in in VBA:
Extra > Macro's > VBA editor > Invoegen nieuwe module > plakken.
Dan kun je de macro aan een knop koppelen.
Snapje?
 
nee eerlijk gezegd niet, misschien omdat ik office 2003 heb hier en jij in 2007 uitlegt
 
Op dezelfde plek in het menu van je macro's staat ook VBA Editor.
Als ik nog een goed geheugen heb:
extra of data > Macro's > Visual basic Editor.
 
dan heb ik dit wel goed gedaan, alleen in krijgt een foutmelding als ik hem wil uitvoeren, namelijk:

Subscript out of range.

Wat ik doe is die code plaatsen --> opslaan en dan terug naar de excel tapblad--> macro uitvoeren

aanpassing:

Nu krijg ik foutmelding:

Object doesn't support this property of method




.
 
Laatst bewerkt:
Zo werkt hij wel, alleen als je dan 1 keer deze index hebt gemaakt, en je wil hem opnieuw maken MOET je handmatig de huidige index sheet verwijderen.

Sub index()

X = 0
Sheets.Add
ActiveSheet.Name = "Index Sheet"
ShtCount = ActiveWorkbook.Sheets.Count
For Each ws In Worksheets
If ws.Name <> "Index Sheet" Then
Worksheets("Index Sheet").Range("A2").Offset(X, 0) = ws.Name
Worksheets("Index Sheet").Range("A2").Offset(X, 0).Select
Worksheets("Index Sheet").Range("A2").Offset(X, 0).Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
ws.Name & "!A1", TextToDisplay:=ws.Name
X = X + 1
End If
Next ws



End Sub
 
Te vroeg gejuicht! hij. Hij maakt hem wel, maar als ik er op ga klikken dan zegt ie:

Reference is not valid.

Enig idee waarom?
 
Graag gedaan, ik hoop dat dit is wat je zoekt!:D
ps. SNB jij ook bedankt! (dacht dat jij het was tenminste!)
Ik krijg zeg maar Dit wel: (dat zijn mijn tapbladen)

P90 - 1 Opgaande
P90 - 2 Opgaande
P90 - 5 van Opgaande
H90 - 3 Opgaande
P180 - 1 Opgaande
P180 - 2 Opgaande
P180 - 4 Opgaande
H180 - 2 Opgaande
H180 - 4 opgaande
H180 - 5 Opgaande
H90 - 1 20.00mA Opgaande
H90 - 2 20.00mA Opgaande
H90 - 4 20.00mA Opgaande
P90 - 1 20.00mA opgaande
P90 - 2 20.00mA Opgaande
P90 - 4 20mA opgaande

maar als ik er op klik dan krijg ik dus die foutmelding
 
Hm nee dat weet ik zo niet, bij mij doet hij het wel. Mischien kun je een voorbeeld bestandje plaatsen, of weer een andere slimme jonge waar het probleem ligt?
 
ik heb ff gekeken op internet, en ik heb de onderstaande code gevonden, die hetzelfde, maar die doet het wel bij mij. In iedere geval heel erg bedankt!

Option Explicit

Sub CreateTOC()
'Declare all variables
Dim ws As Worksheet, curws As Worksheet, shtName As String
Dim nRow As Long, i As Long, N As Long, x As Long, tmpCount As Long
Dim cLeft, cTop, cHeight, cWidth, cb As Shape, strMsg As String
Dim cCnt As Long, cAddy As String, cShade As Long
'Check if a workbook is open or not. If no workbook is open, quit.
If ActiveWorkbook Is Nothing Then
MsgBox "You must have a workbook open first!", vbInformation, "No Open Book"
Exit Sub
End If
'-------------------------------------------------------------------------------
cShade = 37 '<<== SET BACKGROUND COLOR DESIRED HERE
'-------------------------------------------------------------------------------
'Turn off events and screen flickering.
Application.ScreenUpdating = False
Application.DisplayAlerts = False
nRow = 4: x = 0
'Check if sheet exists already; direct where to go if not.
On Error GoTo hasSheet
Sheets("TOC").Activate
'Confirm the desire to overwrite sheet if it exists already.
If MsgBox("You already have a Table of Contents page. Would you like to overwrite it?", _
vbYesNo + vbQuestion, "Replace TOC page?") = vbYes Then GoTo createNew
Exit Sub
hasSheet:
x = 1
'Add sheet as the first sheet in the workbook.
Sheets.Add before:=Sheets(1)
GoTo hasNew
createNew:
Sheets("TOC").Delete
GoTo hasSheet
hasNew:
'Reset error statment/redirects
On Error GoTo 0
'Set chart sheet varible counter
tmpCount = ActiveWorkbook.Charts.Count
If tmpCount > 0 Then tmpCount = 1
'Set a little formatting for the TOC sheet.
ActiveSheet.Name = "TOC"
With Sheets("TOC")
.Cells.Interior.ColorIndex = cShade
.Rows("4:65536").RowHeight = 16
.Range("A1").Value = "Designed by VBAX"
.Range("A1").Font.Bold = False
.Range("A1").Font.Italic = True
.Range("A1").Font.Name = "Arial"
.Range("A1").Font.Size = "8"
.Range("A2").Value = "Table of Contents"
.Range("A2").Font.Bold = True
.Range("A2").Font.Name = "Arial"
.Range("A2").Font.Size = "24"
.Range("A4").Select
End With
'Set variables for loop/iterations
N = ActiveWorkbook.Sheets.Count + tmpCount
If x = 1 Then N = N - 1
For i = 2 To N
With Sheets("TOC")
'Check if sheet is a chart sheet.
If IsChart(Sheets(i).Name) Then
'** Sheet IS a Chart Sheet
cCnt = cCnt + 1
shtName = Charts(cCnt).Name
.Range("C" & nRow).Value = shtName
.Range("C" & nRow).Font.ColorIndex = cShade
'Set variables for button dimensions.
cLeft = .Range("C" & nRow).Left
cTop = .Range("C" & nRow).Top
cWidth = .Range("C" & nRow).Width
cHeight = .Range("C" & nRow).RowHeight
cAddy = "R" & nRow & "C3"
'Add button to cell dimensions.
Set cb = .Shapes.AddShape(msoShapeRoundedRectangle, _
cLeft, cTop, cWidth, cHeight)
cb.Select
'Use older technique to add Chart sheet name to button text.
ExecuteExcel4Macro "FORMULA(""=" & cAddy & """)"
'Format shape to look like hyperlink and match background color (transparent).
With Selection
.ShapeRange.Fill.ForeColor.SchemeColor = 0
With .Font
.Underline = xlUnderlineStyleSingle
.ColorIndex = 5
End With
.ShapeRange.Fill.Visible = msoFalse
.ShapeRange.Line.Visible = msoFalse
.OnAction = "Mod_Main.GotoChart"
End With
Else
'** Sheet is NOT a Chart sheet.
shtName = Sheets(i).Name
'Add a hyperlink to A1 of each sheet.
.Range("C" & nRow).Hyperlinks.Add _
Anchor:=.Range("C" & nRow), Address:="#'" & _
shtName & "'!A1", TextToDisplay:=shtName
.Range("C" & nRow).HorizontalAlignment = xlLeft
End If
.Range("B" & nRow).Value = nRow - 2
nRow = nRow + 1
End With
continueLoop:
Next i
'Perform some last minute formatting.
With Sheets("TOC")
.Range("C:C").EntireColumn.AutoFit
.Range("A4").Activate
End With
'Turn events back on.
Application.DisplayAlerts = True
Application.ScreenUpdating = True
strMsg = vbNewLine & vbNewLine & "Please note: " & _
"Charts will have hyperlinks associated with an object."
'Toggle message box for chart existence or not, information only.
If cCnt = 0 Then strMsg = ""
MsgBox "Complete!" & strMsg, vbInformation, "Complete!"
End Sub

Public Function IsChart(cName As String) As Boolean
'Will return True or False if sheet is a Chart sheet object or not.
'Can be used as a worksheet function.
Dim tmpChart As Chart
On Error Resume Next
'If not a chart, this line will error out.
Set tmpChart = Charts(cName)
'Function will be determined if the variable is now an Object or not.
IsChart = IIf(tmpChart Is Nothing, False, True)
End Function

Private Sub GotoChart()
'This routine written to be assigned to button Object for Chart sheets only
'as Chart sheets don't have cell references to hyperlink to.
Dim obj As Object, objName As String
'With the button text as the Chart name, we use the Caller method to obtain it.
Set obj = ActiveSheet.Shapes(Application.Caller)
'The latter portion of the AlternativeText will give us the exact Chart name.
objName = Trim(Right(obj.AlternativeText, Len(obj.AlternativeText) - _
InStr(1, obj.AlternativeText, ": ")))
'Then we can perform a standard Chart sheet Activate method using the variable.
Charts(objName).Activate
'Optional: zoom Chart sheet to fit screen.
'Depending on screen resolution, this may need adjustment(s).
ActiveWindow.Zoom = 80
End Sub
 
Hallo,

Probeer het volgende eens !!

Tip in de "index sheet" de benamingen van uw tabbladen
-> Selecteer er 1 van.
-> Ga bovenaan in de werkbalken naar "Insert Hyperlink"
-> Kies links voor "Place in this document"
-> Kies uit het lijstje die verschijnt voor het tabblad van uw keuze om de link te leggen.
-> Klik op OK

Doe dit voor alle tabbladen, ik hoop dat de Nederlandstalige versie van EXCEL een beetje hetzelfde is als de Engelstalige die ik heb !!
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan