Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VBA hyperlink

Posted on 2013-11-15
6
330 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

789 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