Solved

VBA hyperlink

Posted on 2013-11-15
6
311 Views
Last Modified: 2013-11-15
Folks,
I understand how to use the hyperlink function, but I have been struggling with the VBA format. Here's my function:
=HYPERLINK("[Excel Formulas and Functions.xlsm]Textfunction!A1","Numeric Values")

Open in new window

I need help on the VBA dise since I'll be using a command button rather than a function.
0
Comment
Question by:Frank Freese
  • 4
6 Comments
 
LVL 15

Expert Comment

by:unknown_routine
ID: 39651764
put this code behind the button:


Dim oExcel as Excel.Application
Dim oWB as Workbook
Set oExcel = new Excel.Application
Set oWB = oExcel.Workbooks.Open(<pathToWorkbookHere>)
0
 

Author Comment

by:Frank Freese
ID: 39651777
I meant to also state that this link is in the same workbook.
0
 

Author Comment

by:Frank Freese
ID: 39651880
Folks,
The more that I think about this "hyperlink" is really a poor choice. All I am wanting to do is have a command button coded to go to a specific worksheet in my workbook. I apologize for confusion.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 35

Accepted Solution

by:
mvidas earned 500 total points
ID: 39651897
Hi fh,
Worksheets("sheet name").Activate
Range("A1").Activate 'if you want a specific cell seen

Open in new window

Matt
0
 

Author Comment

by:Frank Freese
ID: 39652014
mvidas,
that worked just fine. I have a follow-up question coming
0
 

Author Closing Comment

by:Frank Freese
ID: 39652016
good job
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now