Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 02-19-2012, 09:51 AM
viuf viuf is offline VBA and hyperlinks in table cells Windows XP VBA and hyperlinks in table cells Office 2007
Novice
VBA and hyperlinks in table cells
 
Join Date: Feb 2012
Posts: 10
viuf is on a distinguished road
Default

Ok, that's not good

I have now tried to do some shapes instead because the table is not the important thing, but I still have the same problem with the links. How kan I pass through a value to the GoToSlide sub?

Code:
Sub addShape()
 
Dim oshp As Shape
Dim height As Integer, width As Integer, left As Integer, right As Integer
Dim countOne As Integer, countTwo As Integer

height = 50
width = 80
left = 20
Top = 20
countOne = 0
countTwo = 0
Do While countOne < 3
Set oshp = ActivePresentation.Slides(2).Shapes _
.addShape(msoShapeRectangle, left, Top + (countOne * (height + 10)), width, height) ' left, top, width, height
    With oshp
        .Name = "myshape" & countOne
    End With
    With oshp.TextFrame.TextRange
        .Text = "Kategori" & countOne
    End With
    With oshp.ActionSettings(ppMouseClick)
        .Action = ppActionRunMacro
        .Run = "GoToSlide"
    End With
countOne = countOne + 1
Loop
End Sub
 

Sub GoToSlide()
    ActivePresentation.SlideShowWindow.View.GoToSlide (1)
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA and hyperlinks in table cells Word VBA: add textboxs in table cells? tinfanide Word VBA 12 02-09-2012 12:05 AM
VBA and hyperlinks in table cells put a border around table cells that have text in them tonywatsonmail Mail Merge 1 01-31-2012 04:37 AM
VBA and hyperlinks in table cells Unwanted tabs in table cells deltaskye Word 5 01-27-2012 11:58 AM
VBA and hyperlinks in table cells Combining Text from Table Cells robmorleyuk Word 1 11-01-2011 07:24 AM
Word with frames, table of contents, and hyperlinks to html NHMC Word 0 12-09-2009 12:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft