Password Generates List

Dec 29, 2008

I have a cell that is data validated via a list. Currently it contains the entire list of options (Office Names) that I want to be included. However, I am trying to use passwords that I will assign to users (Office Managers) that will allow them to only select their offices from the list. I struggle with VBA so any help would be appreciated!

View 9 Replies


ADVERTISEMENT

Macro Generates Error '5'

Nov 18, 2009

I have been getting this '5' error a lot lately and I dont know why. Many of my macros have had this error. Run-time error '5': Invalid procedure call or argument. The offending (Highlited in Red)

View 3 Replies View Related

Password For Dropdown List?

Sep 2, 2010

I'm required by my manager to produce password protected dropdown list (I use the data validation feature) for purchase order requester. I have been working on it for 2 days now, I somehow got it but it doesnt seem foolproof; as i often get error message after running it a few times.

Basically, all I need is to come up with a unique password for each name for listed in the "Requester". Whenever I click on it, it will prompt me to enter password.Different names requires different password, otherwise it will return as a blank cell.

What are the steps how to edit data validation if possible.

Attached is the requester list : Requester List.xlsx‎

View 7 Replies View Related

Automatically Generates A Pivot Table

Dec 18, 2008

I use a macro that automatically generates a pivot table, re-formats the data, and then makes sure there are no blanks and that the DATA area of the pivot table is set to SUM OF and not COUNT OF.

It was working just fine yesterday but today it is giving me the following error and is highlighting this section of my

View 6 Replies View Related

Array Generates Subscript Out Of Range...

Oct 10, 2007

In Excel I've declared an array outside of any sub or function.

Dim programList() As String

Now I want to use that array, populating and depopulating as needed by calling these subs from elsewhere:

Sub addProgramToArray(ByVal x As String)
' Adds worksheet names to an array for use with adjusting program lengths
If IsArray(programList) Then
thisCount = UBound(programList)
End If
Redim Preserve programList(thisCount + 1)
programList(thisCount) = x

End Sub

Sub removeProgramFromArray(ByVal x As String)
' Removes worksheet names from array, for use with adjusting program lengths
' We do this without resorting the array
If IsArray(programList) Then
For i = 0 To UBound(programList) - 1
If programList(i) = x Then
programList(i) = ""
End If
Next
End If

End Sub

But when run it generates an Error 9 Subscript Out of Range error on the addProgram or removeProgram subs. I suspect it might be the ubound on an empty array, or the fact that I'm trying to use an array I declared outside of the subs.

View 9 Replies View Related

Macro That Auto Generates Email Within Excel

May 26, 2010

I use a Macro that when run, will generate an email with the excel sheet attached. See attached example.

My two questions are:

- Is it possible for the body of the email that is generated to have spaces within the text? So it shows more like the below:

"Good morning,

Please find today's forecast for Friday, May 07, 2010 attached.

FRC Treasury Team"

- Also, the colors in the spreadsheet change automatically when the macro attaches the sheet. Why is this? Is it possible to do something so that this does not happen?

View 5 Replies View Related

Drop Box That Generates A Chosen Table Already Made

Feb 6, 2014

Scenario: I have 5 different tables, all having the same headers. The values under are Vlookups.

Objective: Create a dropbox that lists (Table 1, Table 2, etc.) For whichever table is picked, is the one that will show.

For example, if I want table 1 to populate, I would chose table one in the drop box and so on for the rest of the other tables.

View 6 Replies View Related

Changing Worksheet CodeName Generates Error(s)

Jan 14, 2010

Reference: [url]

I delete sheet1, copy sheet3, rename to sheet1 and then attempt to rename the CodeName to Sheet1 as well.
This worked initially with out errors.

Now on the first run of the macro it generates an error:


Run-time error '32813':
Method 'name' of object '_VBComponent' failed

This fails to rename the CodeName of "Sheet1" (.Name)
Run it again and it renames the CodeName but generates yet another error:


Run-time error '-2147221080 (800401a8)':
automation error

View 10 Replies View Related

Conditional Formatting W/VBA Generates Runtime Error 5?

Aug 1, 2008

I have the following issue and hope someone can help:

I'm setting a conditional formatting formula in a range of about 2000 cells using VBA.
The procedure works fine on my PC, but generates "runtime error 5" on all of my colleagues PC's. (We all use the same version of Excel 2003).

The procedure I am using is: ...

View 9 Replies View Related

Collect Password From User & Match To List

Jan 29, 2008

I have an input box for a password, and my vb code checks the password against a list, and if it is correct allows the user to continue. I want to change the input box for a user form, as it allows more text on the form, and I also want to include a checkbox that the user must tick to show that they have read and understood the instructions. I have defined the form, but am having trouble getting the form to interpret the user input.

The form has one checkbox, which needs to be ticked to continue, otherwise give a message saying that you have to confirm. It also has one textbox, for the user to input the password. I dont understand how to name the contents of the text box, and use it in the following code. Also do I need a "send" button on the user form, for the user to click after entering the password. If so how does that work?

View 4 Replies View Related

VBA Code To Auto Fill Formula Generates Error

Nov 17, 2012

Why this error is coming up on a macro. Now to what I'm trying to accomplish is I have 1 sheet called GDL and I want to pull certain data from that sheet into another sheet called data sheet. I have formulas set in the data sheet to pull the information I want. However, I want to create a macro to pull the data for those formula or I guess another way of looking at it would be a auto fill function, except with a macro button. Please see the following error I receive when trying to run the macro.

Run-time error '1004': Autofill method of range class failed. The following is the macro.

VB:
Sub ResetDataSheet()
'
' ResetDataSheet Macro
' Macro recorded 11/13/2012 by asdf
'
[Code] ....

View 5 Replies View Related

Require Password To Open If Username Does Not Match A List

Aug 8, 2014

I have a spreadsheet (don't we all) that is currently password protected - you double click the file and need to input a password before it will open.

I have some code that will protect a workbook from changes and only unlock for specific usernames, and i wonder if there is some code that will do the following:

-User opens spreadsheet
-VBA looks at the username trying to open the sheet, for this example the username is Paul.Smith
-Paul.Smith is not one of the people who should have regular access to this sheet - so the VBA requests a password from him prior to opening the sheet.

My username opens the same sheet (galvin.paddy), VBA see's that my name is one of the 'Authorised Users', removes the password and opens the sheet for me ready for use.

View 14 Replies View Related

IF Function - Design Generator In Excel That Generates Algebraic Expressions

Feb 27, 2013

I am trying to design a generator in excel that generates algebraic expressions.

For example

In cell B4 the formula is RANDBETWEEN(1,12)
In cells C4:29 I have letters a - z listed in a column one letter per cell.

In a separate cell from which excel reads is the formula:

=B4&CHOOSE((RANDBETWEEN(1,26)),$C$4,$C$5,$C$7,$C$6,$C$8,$C$9,$C$10,$C$11,$C$12,$C$13,$C$14,
$C$15,$C$16,$C$17,$C$18,$C$19,$C$20,$C$21,$C$22,$C$23,$C$24,$C$25,$C$26,$C$27,$C$28,$C$29)

For example one possible result would be 3f.

However if the result was 1m, in a separate cell I want excel to realise that B4=1 and then display it as m.

I've attached the spreadsheet as well : algebra.xlsx‎

View 1 Replies View Related

VBA Excel Macro Generates (Automation Error) Randomly Using Office 365

Apr 10, 2014

I have a VBA macro for automatically create a word report using data in Access and Excel. The macro is hosted within a Excel document but are using both Word-, Excel and Access objects/dataTtemplates for the creation.

The errors appears what it seems randomly. The macro iterates the same code a few times even in Office 365 but then it crashes. The most common error messages are:

Error 1:

Run-time error '-2147417851 (80010105)':

Automation error : The server threw an exception.

Error 2:

Run-time error '462':

The remote server machine does not exist or is unavailable

Error 3:

This action cannot be completed because the application () is busy. Choose Switch To to activate and correct the problem.

(no options are working, this hang the application)

If I debug usually the error originates from the code where I ether close the workbook template I'm using:

excelWorkbook.Close False

... or when I paste a chart from Excel to the Word report:

wordDocument.ActiveWindow.Selection.PasteSpecial

Even more strange are that sometimes if I continue to run the macro its all working again. This ONLY happens when the client office installation is O365. Office 2013 works just fine. I thought O365 and Office 2013 was fairly equal?

View 1 Replies View Related

Password Protection :: Asking For Password Of An Old Deleted File

May 27, 2009

When opening a new Excel file, it is asking me for a password to an old excel file that was password protected, which I have deleted from my computer. It is still asking for this password every time I open a new or existing file. When I hit cancel it lets me open the file.

View 11 Replies View Related

Forgotten Password For Password Protected Sheet

Mar 21, 2007

I have a spreadsheet, which has certain worksheets that are password protected. I need to make changes to some of the formulas, and the VBA modules, however I cannot remember the password!! Is there a way of identifying the password??

View 3 Replies View Related

Macro - Paste Password Into Password Box

Nov 28, 2008

I am havng problems with the belwo macro code -

Range("G7").Select
Selection.Copy
Workbooks.Open Filename:= _
"Q:PublicPAYMENTS Q&RREPORTSSuspense Activity BUSINESS2008 - Suspense BUSINESS - Activity Reports2008 Avon.xls"
Application.CutCopyMode = False
ActiveWorkbook.Save
ActiveWindow.Close
End Sub

When i open the workbook it requires me to insert a password, i tried to type this but excel will not follow keystrokes, i then inserted the password in cell G7 which i then copy and paste, which you can see the copy at the beginning of the macro.

Is there a way where you can get it to insert the password so i can open the workbook in a macro.

What im trying to do is save 26 suspense spreadsheets by just clicking on a macro.

View 9 Replies View Related

Password Protect: Unlock The Worksheet, Autofilter It, Print It, Unfilter It, And Password Protect The Sheet Again?

Jan 12, 2007

I have a sheet that is password protected. I have this code attached to a command button. It will unlock the worksheet, autofilter it, print it, unfilter it, and password protect the sheet again. However it is protecting it without a password. I need to have it protected with the password so that someone will not be able to just go to tools to unprotect the sheet.

Private Sub CommandButton1_Click()
ActiveSheet.Unprotect "rainforest"
Columns("O:O").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=">0", Operator:=xlAnd
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Selection.AutoFilter Field:=1
Selection.AutoFilter
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowSorting:=True, AllowFiltering:=True
End Sub

View 3 Replies View Related

Set Password

Mar 9, 2009

how to set password for VBAProject?

i know to protect the spreadsheet

i want to password protect my coding in the VBA Project module ...

View 10 Replies View Related

VBA Password

Dec 14, 2006

When using the a file with VBA based on a button is there any way to add a password to that file at the same time?

That way it can be opened by anyone?

The code below works fine but the user can open the file in fact anyone can once they press the command button I want to add a password so when the file is reopened it requires a password?

Is this some thing vba even does?

Private Sub CommandButton1_Click()
Const PTHNAME As String = "C:Feedback"
Dim FileNameWithDate As String, x As Integer

FileNameWithDate = Format(Date, "yyyymmdd")

x = 1

If Dir(PTHNAME & FileNameWithDate & ".xls") = "" Then
ActiveWorkbook.SaveAs Filename:=PTHNAME & FileNameWithDate & ".xls"
Else
Do Until Dir(PTHNAME & FileNameWithDate & x & ".xls") = ""
x = x + 1
Loop
ActiveWorkbook.SaveAs Filename:=PTHNAME & FileNameWithDate & x & ".xls"
End If
SendMailtoBDTT
SendMailtoPerson
End Sub

View 9 Replies View Related

Capturing Password ...

Apr 27, 2009

First, I know passwords are easy to break. The point is only to keep the average Excel user in a dept of 3 from accidentally damaging the data.

Normally I hardcode passwords to view xlveryhidden sheets.

But this workbook is for a dept head who has standard password(s) he uses to open or edit a file. I would like to capture these passwords and make it the same password(s) to view a hidden sheet.

This way if he ever changes the password to open/edit it will automatically change the password to view the hidden sheet(s).

View 7 Replies View Related

How To Set Password For An Action

Apr 27, 2009

How to set a password before executing any action.

For example, I have "cancel" button in my userform. If i click "cancel" it unloads the form. Instead of that i need a password prompt. so when i click the "cancel" button ,it should ask for a password. only if i provide the correct password then only the form should be unloaded.

View 6 Replies View Related

Run Marco Without Password

May 5, 2009

when i run this marco, i get a Password msgs box appear, now is there away of running it so that it does not ask for a password, I have tried to unprotect the sheet with a password which works, but it never re-protected it self,

I don't know that much about VBA and my programming knowledge is very limited. I dont want the code re-written, as its someone elses work and it does what i want, i just need to know if an extra line can be entered to stop the password msg box. I.E. it needs to run without asking for the password

View 4 Replies View Related

User Name & Password Log In

Jun 10, 2009

I have a 3 2 user forms, plus a calandar pop-up user form. One is a Log In Screen with a user id combo box and a password textbox referenced to ranges in a very-hidden sheet.

My second form is a spend tracker with mulitple fileds, text boxes, combo boxes, etc.

One of the fields in the spend tracker is user name, what I would like to do is when a user enters their user name and password the entered user name as long as it matches one in the database be populated in the user name field and not allow it to be edited. Is there a way to do this, if so, what is the code and where do I put it.

I will attach my file so you can check it out. Log in: tester

Password: test01

Programmers Access Code is 1234.

View 9 Replies View Related

Password Changing

Sep 1, 2009

I was working on a workbook that unhides certain sheets depending on who's logged in. It seems to work fine. However, after it's run (and sheet2 has been unhidden), when I go to unprotect the workbook, the password ("test") no longer works.

View 5 Replies View Related

Password And Macro

Sep 30, 2009

I have an excel spreadsheet that has password to open it as well a read only prompt. What I would like to happen is after the user has typed in the password, clicked ok, and then clicked either "yes" or "no" for read only or not that a specific named macro immediately is run.

View 4 Replies View Related

Password For Tabs

Dec 30, 2009

I have a workbook where each tab represents a 'base.' You can select which base to view by selecting an option from a drop down box on a menu page.

The data for each base is of a confidential nature so I would like to password protect each tab so that it asks for a password BEFORE the page opens. I don't think Excel has the functionality to do this unless I make the pages 'Very Hidden'?

View 8 Replies View Related

Remove A Password

Feb 2, 2010

I have givien a password to a workbook through the save as meathod. How do I remove this password so anybody can just select the workbook to open it?

View 2 Replies View Related

How To Lock Each Tab With Different Password

Oct 25, 2011

I have a excel document with 5 tabs (sheets) and, because different people work with a different tab (sheet), I want to lock each tab (sheet). I want the tab to be visible on the tab bar but when you click on it you will not be able to see the content of that tab (sheet) until you provide the right password (each tab with a different pasword).

View 2 Replies View Related

How To Put Password Into Macro

Feb 4, 2012

how do i put the password of a file into a macro ?

View 4 Replies View Related







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