Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

This answer was rated:

I have a vba Excel userform which contains some textboxes,

Dear SirI have a vba...
Dear SirI have a vba Excel userform which contains some textboxes, comboboxes and command buttons.
This listbox populated with data from a worksheet (Sheet1), through a command button.
Values from a specific column (let's say column d) are hyperlinks for files (.pdf) which contained to a folder.What is asked:Values in the textbox which linked with cell range from specific column (column d), should be react as the cell values.Example:
Let's that we have the Worksheet "Sheet1".
in column "d" and cell "2" (D2) there is the value "1520".
This value is a hyperlink and When pressed by mouse's cursor, opens the .pdf file "1520.pdf".How we can to link the value of cell D2 (which is hyperlink), to the textbox?I mean how we can to "put/pass/reflect" a hyperlink to a textbox userform, in order to be able to press the mouse button on it and open the linked file?**INFORMATION**
1) Textbox value is NOT static. It means that textbox value it can be a range of cells (D2,D3,D5,D6 etc.)
2) Progamming Languange: VBA EXCELExample workbook provided as reference.Accepted solution must provide test workbook.Thanks In Advance
Show More
Show Less
Ask Your Own Programming Question
Answered in 15 minutes by:
8/8/2017
The-PC-Guy
The-PC-Guy, Software Engineer
Category: Programming
Satisfied Customers: 2,216
Experience: Extensive Knowledge in PHP, MYSQL, CSS & Javascript
Verified

Thanks for using JustAnswer. My name is***** will do whatever I can to answer your question and will be back in a moment with my reply.

Ask Your Own Programming Question

you can use the hyperlink.follow method in vba.

for example range("B2").hyperlink.follow

if you need more details, I would have to charge more as you chose the lowest payment option.

as far as having multiple links in a textbox this may not be possible, it may be possible to do a listbox with a select and a command button that when clicked would open the appropriate file.

again this would be extra cost.

Ask Your Own Programming Question
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 368
Experience: PhD in Computer Science
Verified

Hi,

Welcome to JustAnswer and thank you for utilising our services.

I can complete this, please advice if you still need help with it.

Regards,

G

Ask Your Own Programming Question
Customer reply replied 1 year ago
Dear SirYes, unfortunately this issue it still remains unsolved.In the past you have answered me, another question (19 March 2017).
Your solution was very good. You are very good expert.
The price that i offered was Euro 25.00, but i can offer, plus, up to Euro 15.00 (total: 40.00).
Programming solution (in vba excel) is highly recommended.Please if new price is right for you, please let me know.Thanks In Advance

Ok no problem, I'll look at it shortly

Ask Your Own Programming Question
Customer reply replied 1 year ago
Thank you very much sir.

Please download and run the form, click on the label and comment on its behaviour

Pleas also advice on how you would assign the hyperlinks to the labels and if the files are located in the same directory as the spreadsheet.

Ask Your Own Programming Question
Customer reply replied 1 year ago
Hi,I have clicked on the label and opened properties window. I must do something in this window?
The name/caption of the label is not a static. Name/caption should be change regarding cell's value.When pass the mouse's cursor to the label should be becomes like when place it above a cell with hyperlink value.
The files are not located in same directory with spreadsheet.
Customer reply replied 1 year ago
I modified your code and is almost close to what i want to accomplish. How to loop between last used row, with command button 1?

Ok thanks let me look at it

Ask Your Own Programming Question
Customer reply replied 1 year ago
Ok.
Customer reply replied 1 year ago
Dear SirAs i have received e-mail in order to rate your question, your last response through just answer site, was that:
"Ok thanks let me look at it"
For this reason i am still waiting for a response.
Please clarify if your last answer was the final.
Customer reply replied 1 year ago
From your side, you have requested more nformation as per below:
"Pleas also advice on how you would assign the hyperlinks to the labels and if the files are located in the same directory as the spreadsheet."
But even for this, i received a response.
I can rate for this part of solution,but you will receive the initial price Euro 25.00.
Thanks.

Hi,

I am till on it just had distractions.

I should be able to send you something to test in the next 2 hours

Regards,

G

Ask Your Own Programming Question

Please download and try it out

I wasn't sure of the business rule so it assumes your links are in column D.

On selection from the combobox, it updates the link on the label

George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 368
Experience: PhD in Computer Science
Verified
George Sibiya and 87 other Programming Specialists are ready to help you
Ask your own question now
Customer reply replied 1 year ago
Kindly be informed the following:
1) I am getting this error message as shown to the attached picture file.
2) In the description, above "INFORMATION'', i have declared that range values is NOT STATIC, which means that
today may should be D2-D11,but tommorow shoud be D2-D150.
Your answer is only for static range.
3) Combobox value is not mentiioned to the description. I mentioned "Textbox" and "Label" controls only.
I would like to thank you for your answer,but it is not completed.
Thank you.
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a programmerLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask George Sibiya Your Own Question
George Sibiya
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 368
368 Satisfied Customers
Experience: PhD in Computer Science

George Sibiya is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,175 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

2,216 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
Dear SirsI have an Excel VBA userform. This userformcontains
Dear Sirs I have an Excel VBA userform. This userform contains 5 textboxes. Each one of the them, send values in a Excel worksheet. Example: The problem, is values of these textboxes must be transfere… read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,474 satisfied customers
I have a large excel 2000 data sheet,(over 500 rows)
I have a large excel 2000 data sheet,(over 500 rows) with col (C) populated with "N" in some rows, while all other rows in col (C) are blank. Col (D) is populated with dollar amounts which are increme… read more
Ryan-CTech
Ryan-CTech
Manager
279 satisfied customers
I have a problem with my macro code. The code copies value
I have a problem with my macro code. The code copies value from worksheet named sheet1 to another worksheet named sheet3. The value in sheet3 is not changing when a different criteria is selected from… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I added a new combo box to an old userform code. The combo
I added a new combo box to an old userform code. The combo box has a list of csv files. when a user click on a csv file, the existing data in sheet1 content is cleared and the selected file is loaded … read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I'm getting this error doing a range, any ideas. Type
I'm getting this error doing a range, any ideas. Type mismatch Run-time error ‘13': Set Rng = Range("A1:A32") For Each Cell In Rng… read more
Ryan-CTech
Ryan-CTech
Manager
279 satisfied customers
How do I find a VB macro the will scroll through a named range
How do I find a VB macro the will scroll through a named range that is a list of employee record number and employee name and print a timesheet form for each employee in a batch print process within a… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
Need to parse date that is in one column on two lines. What
Need to parse date that is in one column on two lines. What deliminator can I use? Example: Same Column contains 182980 and second line contains 247.5. I need these figures in two columns.… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
click a cell (column f) on a worksheet, listbox dropdown, with
click a cell (column f) on a worksheet, listbox dropdown, with two cloumn. click on a value in the frist column and past it in the active cell in column F. Code foe populating the listbox It target.co… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I need a VBA routine written. I have two worksheets. In worksheet
I need a VBA routine written. I have two worksheets. In worksheet "Expedite-Revised" there are Inventory Item #'s. Worksheet "OMO Rpt Data" also has Inventory item #'s. I need to be able to hyper-link… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I have a userform that opens up on the home worksheet with a 3 comboboxes and
I have a userform that opens up on the 'home' worksheet with a 3 comboboxes and one command button. I need to write a code where from the selection of one combobox the other two comboboxes data are th… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
how can I, using excel 2007 show standard deviation in each
how can I, using excel 2007 show standard deviation in each cell rather than having it displayed at the bottom of the range… read more
J. Mar
J. Mar
IT Specialist
Master's Degree
341 satisfied customers
Problem using VlookUp and UserForm macro. I have two workbooks.
Problem using VlookUp and UserForm macro. I have two workbooks. There is a UserForm in the first workbook that has a comboBox with a validation list. Below the ComboBox is a TextBox. Once the user sel… read more
Wei C.
Wei C.
Bachelor\u0027s Degree
979 satisfied customers
Hi, I need some macros useing VBA for excel: 1) I need a vba
Hi, I need some macros useing VBA for excel: 1) I need a vba code that calculate average (mean) on n cells in a column. It should calculate the average of for example A1:An. 2) i need a vba code that … read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I am creating a userform in Excel 2007 that has text boxes
I am creating a userform in Excel 2007 that has text boxes that I want linked to a specific worksheet. I do want the data to just be stored on the next available line in the column. Here is what I hav… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I would like to be able to get the excel to pull data from
I would like to be able to get the excel to pull data from a file then save the data into a PDF file… read more
Cherryl Lewis
Cherryl Lewis
Bachelor's Degree
180 satisfied customers
Microsoft Excel- I have formulas in B2 to B5 with row references.
Microsoft Excel- I have formulas in B2 to B5 with row references. The row references changed. I got the new row references using a match formula in D2 to D5 showing the new row numbers. I want to high… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I have an excel 2003 worksheet with about 19,000 rows of data.
I have an excel 2003 worksheet with about 19,000 rows of data. I want to write a macro which will look at the value in Column D1 and return an answer in Col A1 and repeat this action until the end of … read more
Karl Everest King
Karl Everest King
Web Designer, Programmer
Vocational, Technical or Trade Scho
224 satisfied customers
I have spreadsheet that I think I need to use a nested IF statement
I have spreadsheet that I think I need to use a nested IF statement or a Vlookup, but I can't make it work. A1-A31 is a constant series of numbers (25-55) that are in a series from another worksheet, … read more
JeremyChow
JeremyChow
Bachelor's Degree
42 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x