I need to adjust a date format entered by the user based upon the users "localization" settings. So when the user is entering the form I need to be able to check how they have their date formatting localized. I don't see in the currently logged in user data, is there a way to do this?
thanks in advance for your help
ok, I found it. If you use the config module you can load "config.Type.USERPREFERENCES" and get back a record of the "current user preferences". It is a record so record.getValue('DATEFORMAT') will return the date format chosen by the user.
thanks
I have a file with all Team Members with their Individual Data. I have kept the same in One Drive, but unable to control others to see the numbers.
Is it possible for me to assign user-specific access to a worksheet in excel with Employee ID as a Password to open and have an Admin Access to do anything?
Put a different password on each sheet - only the person for that sheet and you know the password, then each can only access "their" sheet.
I suggest you don't use the employee ID as people can find out each others - why does IT spend so much time chasing us to use sensible passwords?
Also consider the use of vba - on opening it asks for the password and then opens the "correct" sheet - not tried this but interesting. Check out the difference between "hidden" and "Very Hidden" which is available as well.
There are posts on here about using passwords on sheets and hidden / very hidden.
I have an Excel list consist of 10 rows
In that, one user can only access 5 rows, another user can access another 5 rows and another user can access a total of 10 rows.
So how can we do it?
This can be achieved through VBA Macro however if you dont prefer VBA, the simplest way to give different level of access is to define "Allow Users to Edit Ranges" and protect the Sheet
You can access this settings through the ribbon Review -> Allow User to Edit Ranges
Click New
Give some Title to the Range, Select the appropriate Range, provide Range Password and click OK.
Share the password with the user who can edit the range
If you require more ranges, repeat the same steps (1-3)
Thanks,
I have an excel spreadsheet with sensitive data. Recently the spreadsheet was accidentally shared with a person outside my company. I want to know if the following is possible:
- Ideally we want the Excel to check if the user is a company employee when the spreadsheet is opened and only show content if the user is a company employee. If the user is not an employee then don't show content.
Is this something that is feasible? If so what options are there to implement this?
I've been sending Outlook emails from Excel for a while, using it to manage my sales and project management activities at work. I've been enjoying increased productivity from it, so I want to do some more advanced things. For example, I think I have the code worked out, probably in a crude way, to have Excel help keep track of emails that have not been replied to. (I simply have Outlook, for each new email, open a workbook, and create a record in a new row, then have Excel attempt to match it to an email I previously sent.)
But once I have a record in Excel of such an email, it has no link or connection to the actual email. I want to be able to click on the Excel icon or link for the email, and then pull up the actual email.
I have found possibilities in using EntryIDs and MessageIDs, Outlook URLs and GUIDs,and even good-old AdvancedSearch (but I think having Excel search for an email that it initiated seems pretty clunky; there should be a way to create a hard link to the email).
Relatedly, and also probably just as clunky, but I've pondered "embedding" a unique identifier in each Excel-initiated email, that could be used to find it and link it back to a record in Excel. In an HTML email, I can add a string of numbers under my signature, in white text on a white background, and it's not perfect but in most cases should go unnoticed, and would allow my spreadsheet to positively identify it (as a reply to a particular email, etc.)
I know we're not supposed to ask for "advice" but I am hoping someone can point me in the right direction to something that may work for what I hope to accomplish.
Why not use the email's time sent (TIMESTAMP - MMDDYYYYHHSS), Recipient, and Subject Line as unique, identifying markers? Add these fields to your row data. Then, after email is sent, create a macro event that will:
Launch the Outlook App
Open the Sent Folder
Loop through all items
Filter email to the markers (Time, Recipient, Subject Line) of the active Excel row
Open the Email Item
Aside, my personal advice is to use a database like MS Access which works great with its siblings, Excel and Outlook. Also, it is designed to maintain relationships between data elements. Access could hold all the needed email content (emailID, recipient, subject, body, date, emailsent?) and with forms can provide AfterUpdate, ButtonClick, OnOpen events to manage the process of data entry, email process, data update, so on. If only you knew the increased productivity that comes with a relational database!
You can add a user property to the MailItem class. See the UserProperties collection for more information.
The automated systems add an ID to the end if the Subject line.