ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Programming (https://www.excelbanter.com/excel-programming/287050-excel-programming.html)

aly1cat[_2_]

Excel Programming
 
I am trying to do two things.

1. create a link in a spreadsheet whereby if the cell contains a Y or
someone enters Y (Yes). It will automatically run a program to open a
specific document or spreadsheet.

I would be grateful for some step by step instructions.

2. How do I create buttons and then add a link/macro to it, so that it
performs an action such as opening up a document?

Would appreciate any help, thanks all.


---
Message posted from http://www.ExcelForum.com/


Don Guillett[_4_]

Excel Programming
 
1. Use a worksheet_change event
right click sheet tabview codeleft window select worsheetright window
select worksheet_changetype in

if target.address<"$A$4" then exit sub
if ucase(target)="Y" or ucase(target)="YES" then call mymacro
=====


--
Don Guillett
SalesAid Software

"aly1cat " wrote in message
...
I am trying to do two things.

1. create a link in a spreadsheet whereby if the cell contains a Y or
someone enters Y (Yes). It will automatically run a program to open a
specific document or spreadsheet.

I would be grateful for some step by step instructions.

2. How do I create buttons and then add a link/macro to it, so that it
performs an action such as opening up a document?

Would appreciate any help, thanks all.


---
Message posted from
http://www.ExcelForum.com/




aly1cat[_3_]

Excel Programming
 
Thanks for your quick response - however, if I need to enter the name of
the document that I need it to open. Where would I enter the detail.

I am not a VBA programmer, so bear with me!!!

Thanks


---
Message posted from http://www.ExcelForum.com/


Don Guillett[_4_]

Excel Programming
 
You can learn by using the macro recorder and then modifying to suit.
If you already have some code, copy/paste here for comments.

--
Don Guillett
SalesAid Software

"aly1cat " wrote in message
...
Thanks for your quick response - however, if I need to enter the name of
the document that I need it to open. Where would I enter the detail.

I am not a VBA programmer, so bear with me!!!

Thanks


---
Message posted from
http://www.ExcelForum.com/





All times are GMT +1. The time now is 11:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com