Solved

VBA hyperlink

Posted on 2013-11-15
6
299 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
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 Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

706 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

20 Experts available now in Live!

Get 1:1 Help Now