+ Reply to Thread
Results 1 to 6 of 6

Construction Calculator

Hybrid View

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    BURTON ON TRENT, UK
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Construction Calculator

    I have two problems to solve on this workbook Index & a Trig problem.

    Index ; I have entered the following syntax in the VBA editor but get error message


    Private Sub Worksheet_Activate()

    Dim wSheet As Worksheet

    Dim l As Long

    l = 1



    With Me

    .Columns(1).ClearContents

    .Cells(1, 1) = "INDEX"

    .Cells(1, 1).Name = "Index"

    End With



    For Each wSheet In Worksheets

    If wSheet.Name <> Me.Name Then

    l = l + 1

    With wSheet

    .Range("B1").Name = "Start_" & wSheet.Index

    .Hyperlinks.Add Anchor:=.Range("A1"), Address:="",

    SubAddress:="Index", TextToDisplay:="Back to Index"

    End With



    Me.Hyperlinks.Add Anchor:=Me.Cells(l, 1), Address:="", _

    SubAddress:="Start_" & wSheet.Index, TextToDisplay:=wSheet.Name

    End If

    Next wSheet

    End Sub


    :

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Construction Calculator

    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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