PC Review


Reply
Thread Tools Rate Thread

Back Door to VBA?

 
 
Wayne
Guest
Posts: n/a
 
      10th Feb 2004
Having "grown" a workbook over several years adding
little bits of code here and there I've made a mistake in
the code somewhere and excel closes as soon as I open the
workbook.

Is there a back door into the workbook just to look at
and alter the code?
There is no protection on the workbook or the code.
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      10th Feb 2004
Open it with macros disabled.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Wayne" <(E-Mail Removed)> wrote in message
news:d7fb01c3ef6a$b7a595c0$(E-Mail Removed)...
> Having "grown" a workbook over several years adding
> little bits of code here and there I've made a mistake in
> the code somewhere and excel closes as soon as I open the
> workbook.
>
> Is there a back door into the workbook just to look at
> and alter the code?
> There is no protection on the workbook or the code.



 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      10th Feb 2004
Wayne,

Hold down the SHIFT key when you open the workbook. This prevents
the startup code from executing.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Wayne" <(E-Mail Removed)> wrote in message
news:d7fb01c3ef6a$b7a595c0$(E-Mail Removed)...
> Having "grown" a workbook over several years adding
> little bits of code here and there I've made a mistake in
> the code somewhere and excel closes as soon as I open the
> workbook.
>
> Is there a back door into the workbook just to look at
> and alter the code?
> There is no protection on the workbook or the code.



 
Reply With Quote
 
pfsardella@yahoo.com.nospam
Guest
Posts: n/a
 
      10th Feb 2004
I would visit the following sites to deal with backing up your
workbook(s).

David McRitchie
http://www.mvps.org/dmcritchie/excel/backup.htm

AutoSafe.zip
http://www.bmsltd.co.uk/mvp/MVPPage....nKarelPieterse

-------------------------------------------------------------------------------------------

After you've opened the workbook using the suggestions provided, you
may want to try to adapt the following code to 'backup' your code.
Watch the linewrap.

Sub ExportAllVBA(Optional varName As Variant)
'' Exports all Modules, etc. to folder named the same as the Workbook.

Dim VBComp As VBIDE.VBComponent
Dim PartPath As String
Dim NextPartPath As String
Dim TotalPath As String
Dim Sfx As String
Dim d As Integer

If IsMissing(varName) Then varName = ActiveWorkbook.Name Else
varName = CStr(varName)

PartPath = "C:\Money Files\Computer Helpers\Modules\"
NextPartPath = Left$(ActiveWorkbook.Name, Len(ActiveWorkbook.Name)
- 4)

On Error Resume Next
TotalPath = PartPath & NextPartPath
ChDir TotalPath
If Err.Number = 76 Then MkDir TotalPath
On Error GoTo errHandler

For Each VBComp In ActiveWorkbook.VBProject.VBComponents
Select Case VBComp.Type
Case vbext_ct_ClassModule, vbext_ct_Document
Sfx = ".cls"
Case vbext_ct_MSForm
Sfx = ".frm"
Case vbext_ct_StdModule
Sfx = ".bas"
Case Else
Sfx = ""
End Select
If Sfx <> "" Then
VBComp.Export _
Filename:=PartPath & NextPartPath & "\" & VBComp.Name &
Sfx
End If
Next VBComp

Exit Sub

errHandler:

MsgBox "The reason for this message:" & vbCrLf & "The Error Number
is: " & Err.Number _
& vbCrLf & "The Error Description is: " & Err.Description

End Sub


HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

>Having "grown" a workbook over several years adding
>little bits of code here and there I've made a mistake in
>the code somewhere and excel closes as soon as I open the
>workbook.
>
>Is there a back door into the workbook just to look at
>and alter the code?
>There is no protection on the workbook or the code.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switchboard back door =?Utf-8?B?a2F5YWJvYg==?= Microsoft Access 1 11th Oct 2004 06:51 PM
back door virus? =?Utf-8?B?R2xlbm4=?= Windows XP Help 1 16th May 2004 09:01 PM
HELP PLEASE BACK DOOR VIRUS'S Mick Kuusik Anti-Virus 2 24th Oct 2003 08:46 PM
SP4 - does it have back door for MS Mark Twoks Microsoft Windows 2000 Security 2 12th Aug 2003 09:18 AM
Re: a 'back door' question CS Windows XP General 0 26th Jul 2003 10:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:06 AM.