VBA Recognize Windows User Accounts And Allow Edit Access

Jul 22, 2009

I'm working on protecting a spreadsheet to where only certain people would be allowed to unprotect and edit it... I've used a standard password protection and created a userform prompting for password and unlocking the sheet, and this works fine.

On the other hand, I was interested if it's possible to write the code to where once the "unprotect" button is clicked it would seek User Account name from windows and try to match it with a list of users somewhere within the workbook. This way the user wouldn't be prompted for a password, but rather the unlocking would simply work or not depending on user account.

View 9 Replies


ADVERTISEMENT

Cannot Access Minimized Excel Pages From Windows Task Bar

Sep 3, 2013

After minimizing my Excel form, I'm trying to re access it from the windows task bar. If I click on the Excel tab it shows me the 2 excel files I have open. I would normally just click on one of those and that sheet would be brought up, but I can't get either of them up - as soon as I click on one or other of them the window just minimizes again.

View 2 Replies View Related

Recognize Which Radio Button The User Selected?

Jul 21, 2014

Within a worksheet, I have several radio buttons, allowing the user to select only one of them. Using VBA, how do I recognize which radio button the user selected?

View 1 Replies View Related

VBA - Check Existence Then Edit / Add Access Record

Feb 9, 2012

I am trying to check for the existence of a record in an access table and do one of the following:

1. If the record exists, overwrite it in the table.
2. If the record doesn't exist, add it to the table.

I'm having real difficulty with the VBA code to check an Access table for the existence of a specific record, and then overwrite. I can do it with dates, but I'm looking for a unique record ID "300112_1_II" and it's trowing up a "Type mismatch" error.

For testing purposes, I'm using the following parameters:

Field = Field_1
Table = TBL_1
Record ID = Test_Record

Basically, I want to check Field_1 for the existence of Test_Record and then either edit the other fields in the record or add a new record, depending upon what it finds.

View 1 Replies View Related

Macro To Access/edit/save A Text File

Apr 21, 2008

I have an xl doc in which one of the sheet's column A changes value every 1 hour...

What I would like to know is.. if there is a method in which i can copy these values from column A to a text file every hour...

The range of cells containing values in Column A also varies every hour.

Also, the old values in the text file needs to get deleted before the new values are updated every hour.

View 14 Replies View Related

Allow User To Choose From List Of Open Windows?

Mar 27, 2009

I have a few macros that need to work with various worksheets which are in different windows.

1. Make the user name the files a certain way for consistency
2. Make the user type the name of each window at the start of execution

I was wondering if there was a more flexible option though: one which would allow the user to choose from a list of open windows (similar to the Window>More Windows>Activate function in Excel).

Ideally the macro would run and say something like, "Which of the following open windows contains dataset1?" "Which of the following open windows contains dataset2?"

View 2 Replies View Related

Get User Name :: Windows User Name?

Dec 8, 2009

How can I set a TextBox in a user form to the Windows's User Name?

View 6 Replies View Related

Allow User To Edit Cell Contents Within Macro

Feb 4, 2014

I need to query a column and find the cells that have been incorrectly coded. For example the coding standard is #<reference number>/. Sometimes people forget the "/". It is not as easy as using search and replace because the string may have more contents than the above.

For example it may show: ATM/45678/#789876 dt. 1-2-14/ or it something like CHQ/44384/#78987600.

There are many permutations. So I need to find the cells that don't have a "/" following the #<reference number>, then allow a user to enter the slash. At this stage, I don't need code to find cells containing errors, I think I can figure that out. I do need to know how to allow the user to edit the cell as part of the macro. Once the user corrects the error, the macro should then continue. Is this possible?

View 2 Replies View Related

Allowing User To Select A Cell But Not Edit It?

Aug 25, 2009

I have an event handler that runs a procedure when a user double clicks a cell. This procedure modifies the contents of this cell and other cells. I want the user to be able to select the cell so they can double click it, but I don't want them to be able to single click it and modify it by hand (accidentally or not). Is there a way to lock/unlock the contents of the cell without locking the cell itself?

View 6 Replies View Related

Allow User To Edit Worksheet At Certain Point During Macro

Aug 17, 2011

I have a macro that I would like to let a user edit the worksheet and make changes at a certain point. I have tried creating a modeless userform, but the userform only pops up and the code continues running without waiting for input (or running any of the code in the userform). Any way I can accomplish this or what I would be doing wrong with the userform?

View 7 Replies View Related

User Login To Excel And Edit Their Department Entries

Aug 5, 2012

I have a workbook that has a list of different depts. I need to design a way to enter a login of sorts to the excel and allow the user of that department to edit their entries only and lock the rest of the entries for the rest of the departments and do not show them in the result list after the user logs in. Once all department manager fills in his/her entries, the administrator is notified via email.

View 1 Replies View Related

Submit Data Entry Into Protected Sheet Without Being Able To Edit By User?

Sep 26, 2012

I have created a simple userform that is linked to a button on sheet1. When the data in the userform is submitted, I set it up so it goes into a database under sheet2. The problem is, I don't want anyone modifying the entries in the database. Usually I would protect the sheet with a password, but when I do that, there is an error when the userform is submitted. The only thing I can think of is to hide sheet2, which doesn't seem like a great solution.

Is there any way to protect my database from being modified yet still allow the userform to be linked to it?

View 3 Replies View Related

Login Form - User Access

Jun 4, 2014

I have a userform (Login), which allows you to login by entering your username, password and by selecting your role.

When you enter the username, password and role and click on submit, it shows another userform (Activities).

Now what I want is, when i enter username, password and select the role as team manager and click on submit, it should show the userform - "Manager_Login". For all other roles, it should show the userform - "Activities".

The usernames, passwords and roles are on the sheet - "User Access".

View 3 Replies View Related

Add Menu Containing Items For User Access?

Mar 30, 2008

What's the easiest/best way to add a menu containing menu items so that a user can easily access custom vba-functionality?

View 2 Replies View Related

Restrict User Access To Worksheet

Dec 6, 2007

I am creating a spreadsheet for work - I have a column that is all the formulas projected sales minus actual sales.

I need to lock this column so that no one BUT MYSELF can change the codes. In other words "idiot proof" the worksheet. there are only 18 sections that I want anyone else to be able to type in.

is there a way to do this without adding users? half the ppl have personal emails and half have company emails.

View 5 Replies View Related

Excel 2010 :: Allow Multiple User Access To Spreadsheet

Aug 22, 2012

We have a spreadsheet on a server location with macros. Different users will access the spreadsheet from one pc on different shifts. Is there a way to set the area as a Trust Location for all users on the PC or enable the macros in the spreadsheet to execute for all users without having to set up the spreadsheet trust location or macros for each user? I would like to have the spreadsheet accessable to any user on the PC without setting up individual access. The users can change for shift to shift.

View 2 Replies View Related

Disable User Access To Master Sheet Through Doubleclicking Locked Linked Cell

Feb 23, 2010

I have a master spreadsheet that houses most of the information that remains in my control, and several other user spreadsheets that update cells from that master through links.

I am having some problems lately with users doubleclicking the locked linked cells in their workbooks, and excel then wanting to open and give the user access to my master spreadsheet. Is there a way to disable this feature? I would like it to not even acknowledge the action if that's even possible because it confuses them as to why they are getting a prompt to open another document.

View 5 Replies View Related

Aging Accounts

Dec 9, 2008

I'm trying to create an aging accounts table from transaction data. I am tracking loans. Here's the layout of the data that I have. Positive entries mean that a new loan was taken out. Negative entries mean that a loan payment was made.: ...

View 10 Replies View Related

Assigning Accounts Using VLOOKUP?

Aug 30, 2012

I have two spreadsheets, one named Tracker, the second named Data. Data is a central database spreadsheet with account #s and Tracker pulls information from it. A team is assigned an account based on the last two #s of the account #, called term digits.

Goal: A VLOOKUP to where if a column equals the term digit range (example, any accounts ending in 00 to 09), it will pull the account # from Data to Tracker.

That part is easy, the tricky part I'm having issues with is that I need it to do the search mentioned above AND search for account #s that end in 60.

So: search for 00 to 09 and 60, pull the account # from Data to Tracker once found.

Edit: Term Digit is on column B and the account # is on column A - both in the Data spreadsheet

View 9 Replies View Related

Add Multiple Totals For Different Accounts Per Sheet

Oct 1, 2009

I've got a pretty large budget spreadsheet my department has used for about 5 years now. I want to add multiple totals for different accounts per sheet, however my problem is when I or someone else adds a row at the bottom(above the totals) it is not added into the calculation. I'm using simple formulas right now to total sums and also show remaing money in budget.

For example:

Cell F117 is the total amount spent "=SUM(F112:F116)"
Cell G117 is my budget total, just a number
Cell H117 is the difference "=SUM(G117-F117)"

View 5 Replies View Related

Multiple Users & Accounts Sheets

Jan 22, 2010

I’ve thought up a workbook with four sheets named “Employees Summary”, “EMP001”, “EMP002”, “EMP003” and a number of customer account sheets. Customer account sheets are named by their account numbers.

Now for the hard part. I will have three employees. All of us will have to login to the workbook with a username and password. Usernames would be. Administrator, EMP001, EMP002, EMP003. You should be able to change your password at any time.

All sheets will be visible to the administrator. Employees will only be able to see their respective “EMP” sheet and "Employee Summary" sheet. the rest is hidden. And the really hard part Every employee will enter all their transactions for the day into their respective sheets....

View 2 Replies View Related

Formula For Aging Of Accounts Receivables

Feb 27, 2013

I need formula for aging of accounts receivables.

View 7 Replies View Related

Combining Same Accounts On Multi Lines Into One

Nov 13, 2006

I have a report that I ran that gives me all the customer we have. Unfortunately, my system gives me a separate line item for any thing that my be different within the account like the account has multiple services. I need a way through excel or vba to take these multiple rows of the same acct # and site # and combine it into one line. Each account and site could have multiple services so I would need each consecutive service to be moved to last empty cell of the first such account.

View 11 Replies View Related

Spreadsheet - Accounts Receivable Data

Oct 3, 2007

I have a spreadsheet that's full of Accounts Receivable data, ie customer name, invoice number, amount due, etc.

Problem is that there are hundreds of customers mixed together. I'd like to split this spreadsheet into a sheet for each customer so that I can send the individual pages out as statements.

View 9 Replies View Related

Count Number Of Customer Accounts In A Report

Feb 18, 2014

I'm looking to count the number of customer accounts in a report based on the branch number. I generally need to know, how many accounts has been opened per each branch without double counting the same account number (as it happens that the report may have duplicate number.

finally I need to know the sub total showing the total per branch and subtotal of all branches together.

View 14 Replies View Related

Automated Posting From Journals To Ledger Accounts

Dec 28, 2008

I'm trying to set up automated posting from journal entries to ledger accounts.

What it boils down to is having XL match account numbers, from a 'Post Reference' column in a journal, with the corresponding ledger accounts (carrying the same respective account numbers) on another worksheet.

Then the transaction from the journal needs to be added to the identified ledger accounts in a sort of 'below-the-last-entry' manner.

View 5 Replies View Related

Formula Does Not Calculate Numbered Customer Accounts

Feb 4, 2009

following calculation that someone created for me.

=LOOKUP(10^10,CHOOSE({1,2},0,AVERAGE(IF(Sheet1!$C2:$C13=$A2,IF(Sheet1!$B2:$B13-DAY(Sheet1!$B2:$B13)+1=B$1,Sheet1!$D2:$D13)))))

My problem is that I have some customer account numbers that are alpha/numeric (1B0012) and some that are just numeric (1675) . The above formula does not pick up the numeric accounts correctly.

Is there something that I need to add/remove from this formula so that it will pick up both? or is it a format issue?

I have attached an example of the spreadsheet with this problem. If you select either of the alpha numeric codes it works, but if you select the numeric code it doesn't.

View 9 Replies View Related

Find All The Accounts That Have A Loyal Relationship With A Rep And Separate Them

Feb 19, 2010

I'm trying to find customer loyalty by rep. So I need to find all the accounts that have a loyal relationship with a rep and separate them. All the other reps that sold to those companies are removed. Then I need to find the accounts that still did business with us from year to year, but not with the same rep. Any not loyal accounts are also removed.

The ultimate goal is a pivot table that shows reps on the vertical axis, years on the horizontal axis, with the data being total number of accounts per rep per year. All of the 2008 accounts will be counted, and of the 2009 accounts, only those that were loyal - retained either by the same or a different rep - will be totaled. For this purpose there is no difference between accounts retained either by the same or a different rep, they will be added together. So a rep may have had 10 accounts they sold to in 2008, and of those 10, 5 bought again in 2009, and the rep also picked up 1 account that bought from another rep in 2008. So the rep's totals would be 10 for 2008, and 6 for 2009. I've attached an example workbook to show you what I mean. A "1" in the 2008 or 2009 column indicates the account bought something that year.

View 2 Replies View Related

Aligning Rows: Line Up Accounts Across Each Quarter

Oct 23, 2008

I run reports from Accounting systems that reflect different periods. Of course each period ends up having more or less accounts. See the attached file. This is just one little sample of big massive reports. I need to line up accounts across each Quarter. so that i can calculate differences between each quarter.

In the past few times, I have done this manually. There has got to be a way to do this quicker. I have tried Pivot table. but pivot table didn't help either (unless i was not doing it right).

View 3 Replies View Related

VLookup - Find Duplicate Accounts And Get Count?

Apr 24, 2012

I have a workbook where i am trying to find duplicate accounts. I need to get a count of these duplicate accounts and i need to find the accounts as well. One last thing the workbook covers an entire year and i would like a formula that will cover the 12 sheets to provide the results.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved