Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread Kiran Kancharla
;" > Exit Sub > ElseIf Right(Password, 2) = "^^" Or Right(Password, 2) = "++" Then > Password = "" > Exit Sub > Else > SendKeys Password & "~~" & "{ESC}" > Application.VBE.CommandBars(1).FindControl(ID:=2578, > recu

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread dguillett1
f vbProj.Protection = 1 Then SendKeys "%{F11}", True End If 'Reset Password Password = "" Application.ScreenUpdating = True Set vbProj = Nothing Exit Sub ErrorHandler: MsgBox Err.Description, 64 End Sub Don Guillett Microsoft Excel Developer SalesAid Software dguille...

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread Prince Dubey
Gtalk] > > > -Original Message- > From: excel-...@googlegroups.com [mailto: > excel-...@googlegroups.com ] > On Behalf Of Kiran Kancharla > Sent: 06 September 2012 7:37 > To: excel-...@googlegroups.com > Subject: Re: $$Excel-Macros$$ Excel macro to add VBA

RE: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread Rajan_Verma
September 2012 7:37 To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Excel macro to add VBA password 4. vba protecion password On 9/6/12, Rajan_Verma wrote: > Where you want to apply Password. > > 1) File Open ? > 2) Worksheet Password ? > 3) Workbook Password ? > 4) VB

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread Kiran Kancharla
Original Message- > From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] > On Behalf Of Kiran Kancharla > Sent: 06 September 2012 12:08 > To: excel-macros@googlegroups.com > Subject: Re: $$Excel-Macros$$ Excel macro to add VBA password > > Hi, > >

RE: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread Rajan_Verma
Kancharla Sent: 06 September 2012 12:08 To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Excel macro to add VBA password Hi, thanks a lot your quick responce.. thanks,u kiran On 9/6/12, NOORAIN ANSARI wrote: > Kiran, > > Before run macro, Pls check on Tools-Reference-

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread Kiran Kancharla
hi noorain, yes i want to protect VBA Thanks, kiran On 9/6/12, NOORAIN ANSARI wrote: > Means, You want to protect VBA Coding instead of Opening File. > Kindly confirm. > > On Thu, Sep 6, 2012 at 6:32 PM, Kiran Kancharla > wrote: > >> Hi, >> >> with the above macro I am able to add pasword to o

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread Kiran Kancharla
Hi, with the above macro I am able to add pasword to open the file. In my case i need a maco to add pssword for VBA, not for opening the file. plase help... On 9/6/12, SAGAR KASANGOTTUWAR wrote: > *Thanks a lot Noorain Bhai* > > ** > Have you any programme for protecting the same files in that

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread SAGAR KASANGOTTUWAR
*Thanks a lot Noorain Bhai* ** Have you any programme for protecting the same files in that folder...? Thanks & Regards, SAGAR On Thu, Sep 6, 2012 at 2:41 PM, NOORAIN ANSARI wrote: > Dear Sagar, > > Please use it. > > Change Folder path as per your need. > > Sub Protect_filesofFolder() > > D

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread NOORAIN ANSARI
Dear Sagar, Please use it. Change Folder path as per your need. Sub Protect_filesofFolder() Dim MyFile As File Dim MyFolder As Folder Dim fso As Scripting.FileSystemObject Set fso = New Scripting.FileSystemObject Set MyFolder = fso.GetFolder("D:\VBA_Class\Extra\") For Each MyFile In MyF

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread NOORAIN ANSARI
Wht error is showing, Please send screenshot. On Thu, Sep 6, 2012 at 1:49 PM, SAGAR KASANGOTTUWAR < sagarkasangottu...@gmail.com> wrote: > Dear Noorain, > > I have the same but it is not working. > > Thanks & Regards, > > KSAGAR > > > On Thu, Sep 6, 2012 at 1:33 PM, NOORAIN ANSARI > wrote: > >>

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread SAGAR KASANGOTTUWAR
Dear Noorain, I have the same but it is not working. Thanks & Regards, KSAGAR On Thu, Sep 6, 2012 at 1:33 PM, NOORAIN ANSARI wrote: > Dear Sagar, > > First of all you have add library in VBE Area > > Step:- Tools-Reference-Microsoft Scrinpting Runtime. > > Brother check once again, if does',t

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread NOORAIN ANSARI
Dear Sagar, First of all you have add library in VBE Area Step:- Tools-Reference-Microsoft Scrinpting Runtime. Brother check once again, if does',t work revert me. On Thu, Sep 6, 2012 at 1:22 PM, SAGAR KASANGOTTUWAR < sagarkasangottu...@gmail.com> wrote: > Dear Noorain, > > I am not able to ru

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-06 Thread SAGAR KASANGOTTUWAR
Dear Noorain, I am not able to run the programme and showing compile error (Method or data not found) after running. Thanks & Regards, KSAGAR On Thu, Sep 6, 2012 at 12:07 PM, Kiran Kancharla wrote: > Hi, > > thanks a lot your quick responce.. > > thanks, > kiran > > On 9/6/12, NOORAIN ANSARI

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-05 Thread Kiran Kancharla
Hi, thanks a lot your quick responce.. thanks, kiran On 9/6/12, NOORAIN ANSARI wrote: > Kiran, > > Before run macro, Pls check on Tools-Reference-Microsoft Scripting Runtime > under VBE editor. > > On Thu, Sep 6, 2012 at 11:03 AM, NOORAIN ANSARI > wrote: > >> Dear Kiran, >> >> Please try it.. >

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-05 Thread NOORAIN ANSARI
Kiran, Before run macro, Pls check on Tools-Reference-Microsoft Scripting Runtime under VBE editor. On Thu, Sep 6, 2012 at 11:03 AM, NOORAIN ANSARI wrote: > Dear Kiran, > > Please try it.. > > > Sub ProtectFiles() > > Dim MyFile As File > > Dim MyFolder As Folder > > Dim fso As Scripting.File

Re: $$Excel-Macros$$ Excel macro to add VBA password

2012-09-05 Thread NOORAIN ANSARI
Dear Kiran, Please try it.. Sub ProtectFiles() Dim MyFile As File Dim MyFolder As Folder Dim fso As Scripting.FileSystemObject Set fso = New Scripting.FileSystemObject Set MyFolder = fso.GetFolder(YourFolderPath) For Each MyFile In MyFolder.Files MyFile.Password="abc" Next End Su

$$Excel-Macros$$ Excel macro to add VBA password

2012-09-05 Thread Kiran Kancharla
Hi, Need help to create a macro to add VBA password to all the excel files in a folder. I am using excel 2003. Request you help me on this. -- Thanks & Regards, Kiran -- Join official facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES (1120+ members already BAN