Re: $$Excel-Macros$$ Backup file on every save

2011-12-26 Thread Prakash Gusain
Thanks Siti your method worked Thanks Rajan. for your inputs how are your buddy? On Dec 26, 5:38 pm, "Rajan_Verma" wrote: > Try This : > > Function GiveNumeric(rngVal As Range) As String >     Dim intI    As Integer >     For intI = 1 To Len(rngVal.Value) >     If Asc(UCase(Mid(rngVal.Val

RE: $$Excel-Macros$$ Backup file on every save

2011-12-26 Thread Rajan_Verma
Try This : Function GiveNumeric(rngVal As Range) As String Dim intIAs Integer For intI = 1 To Len(rngVal.Value) If Asc(UCase(Mid(rngVal.Value, intI, 1))) > 64 And Asc(UCase(Mid(rngVal.Value, intI, 1))) < 91 Then GiveNumeric = GiveNumeric & Asc(UCase(Mid(rngVal.Value, intI,

Re: $$Excel-Macros$$ Backup file on every save

2011-12-25 Thread siti Vi
try this code and check if it helps Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.DisplayAlerts = False ' ---save the backup--- Me.SaveAs Filename:="F:\MyData\" & Me.Name '---save the main file--- Me.SaveAs Filename:="D:\MyDocument\" & Me.Name Application.DisplayAlerts = True End