Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, what I'm, wanting to know is if there is a way of knowing if a
spreadsheet was opened by a user clicking on the file name, or if it was opened by another programme. something like this: Private Sub form_activate If "form was opened by user" then 'do stuff Else 'form was opened by onother programme - Access in this case 'do other stuff End if End Sub Thanks in advance Jenni |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try to use:
Whofrom = Application.Caller If WhoFrom="xxx" then Else End If -- PeterS "Jenni" wrote: Hi, what I'm, wanting to know is if there is a way of knowing if a spreadsheet was opened by a user clicking on the file name, or if it was opened by another programme. something like this: Private Sub form_activate If "form was opened by user" then 'do stuff Else 'form was opened by onother programme - Access in this case 'do other stuff End if End Sub Thanks in advance Jenni --- Peter's mail has been inoculated against Virusses. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.530 / Virus Database: 325 - Release Date: 22-10-2003 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
From help on Application.UserControl
True if the application is visible or if it was created or started by the user. False if you created or started the application programmatically by using the CreateObject or GetObject functions, and the application is hidden. Read/write Boolean. -- Regards, Tom Ogilvy "Jenni" wrote in message m... Hi, what I'm, wanting to know is if there is a way of knowing if a spreadsheet was opened by a user clicking on the file name, or if it was opened by another programme. something like this: Private Sub form_activate If "form was opened by user" then 'do stuff Else 'form was opened by onother programme - Access in this case 'do other stuff End if End Sub Thanks in advance Jenni |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula not working when opened by another user | Excel Discussion (Misc queries) | |||
Need to Query Excel File Opened by Another User | Excel Discussion (Misc queries) | |||
Shared spreadsheet changes color when opened ny another user. Why | Excel Worksheet Functions | |||
Shared spreadsheet changes color when opened ny another user. Why | Excel Worksheet Functions | |||
Excel file opened as read-only, if saved by another user | Excel Discussion (Misc queries) |