$$Excel-Macros$$ Re: Excel sheet take long time

2009-02-20 Thread lohith
Hi Rajesh, Set the worksheet calculation mode to 'Manual' and it works fine for you. Tools -> options -> Select the Calculation tab Select Manual and say OK. If you feel, you need to update the calculations at any point of time in worksheet, press F9. Cheers, Lohith On

$$Excel-Macros$$ Re: Can I disable a cell based on the contents of another cell

2009-02-20 Thread lohith
e("A1")) <> "H" Then Target.Previous.Select End If End If End Sub Cheers, Lohith --~--~-~--~~~---~--~~ Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To post to this group, send email to excel-m

$$Excel-Macros$$ Re: Need help in attached file

2009-02-18 Thread lohith
Hi Shah, Please provide the details, what you excatly need. This will help you to solve your issues quickly. cheers, Lohith On Feb 13, 8:53 pm, SHAH DARSHIL wrote: > I need help mentioned in attached file. > > Can any one suggest logic for same? > > regards, > Darshil Shah.

$$Excel-Macros$$ Re: Exclude weekends in time interval calculations

2009-02-13 Thread lohith
Hi, Try the below code. Sub test() Dim bdt As Date Dim edt As Date Dim Weekends As Integer bdt = "02/06/2009 19:44:31" edt = "02/09/2009 10:13:41" Weekends = GetWeekends(bdt, edt) MsgBox ((edt - bdt) * 24) - (Weekends * 24) End Sub Function GetWeekends(DateFrom, DateTo) DF = DateFrom DT

$$Excel-Macros$$ Re: Macro: Tricky problem!! A1=name of folder >> B1= Subfolders,seperated by comma

2009-02-13 Thread lohith
Hi Tobi, Try the below code. Add a reference to 'Microsoft scripting runtime' before using the code. Sub CreateFolderStructure() Dim fsoobj As FileSystemObject Dim rootpath As String Dim rootfold As Folder Dim fold As Folder Dim subfold As Folder Dim num As Integer Dim subfoldtext As String num

$$Excel-Macros$$ Re: Retrieving domain name using VBA

2009-01-06 Thread lohith
Hi Alok, Try this command : Environ("UserDomain") Cheers, Lohith On Jan 6, 10:16 am, Alokeshwar Tiwary wrote: > Is there a way to retrieve domain name using vba...? I need this to make sure > that my vba tool will run only within the network of my compay. > &

$$Excel-Macros$$ Re: Window Selection based on name pattern

2008-12-15 Thread lohith
ot;.xls") Then wb.Activate Exit Sub End If Next End Sub 'Example to check the Activateworkbook Procedure. Sub chk() Activateworkbook ("Book2") End Sub Cheers, Lohith On Dec 15, 7:11 am, Abhijat wrote: > Hi Group, > I was wondering if there is a way

$$Excel-Macros$$ Re: count on 3 criteria..

2008-12-12 Thread lohith
Hi Chris, Try this array Formula and let me know if it work out for you.. =SUM((MONTH($B$1:$B$19)=MONTH(AA1)) * ($C$1:$C$19="P")) Remember to add this formula using Ctrl+Shift+Enter(Array Formula). Cheers, Lohith On Dec 12, 2:33 am, Chris Salcedo wrote: > I need to count da

$$Excel-Macros$$ Re: run time type mismatch/other improvements

2008-12-05 Thread lohith
Hi Larry, Try Using this formula instead. =DATE(B4,B3,B2)-DATE(D4,D3,D2) Cheers, Lohith On Dec 5, 12:51 am, larry <[EMAIL PROTECTED]> wrote: > I am trying to creat a code for caculating the number of days between > two dates. N=A-N causes a type mismacth run time error. Also looki

$$Excel-Macros$$ Re: Required Formula

2008-12-05 Thread lohith
Hi, Try these Array Formulas for Text, Numeric and AlphaNumeric For Text & Alphanumeric 1) =SUM(IF(ISTEXT(A2:A13)=TRUE,D2:D13,0)) For Numeric Column 2) =SUM(IF(ISNUMBER(A2:A13)=TRUE,D2:D13,0)) Remember you need to add this formula using Ctrl+Shift+Enter. Cheers, Lohith On Dec 4, 4:2

$$Excel-Macros$$ Re: Required Formula

2008-12-05 Thread lohith
Hi, Try these Array Formulas for Text, Numeric and AlphaNumeric For Text & Alphanumeric 1) =SUM(IF(ISTEXT(A2:A13)=TRUE,D2:D13,0)) For Numeric Column 2) =SUM(IF(ISNUMBER(A2:A13)=TRUE,D2:D13,0)) Remember you need to add this formula using Ctrl+Shift+Enter. Cheers, Lohith On Dec 4, 4:2

$$Excel-Macros$$ Re: excel sheets in ascending Order

2008-11-28 Thread lohith
Hi Sanjay, Check out these links. It would help you. http://www.cpearson.com/excel/sortws.aspx http://exceltip.com/st/Sorting_Sheets_in_Ascending_Order/669.html Regards, Lohith On 27 Nov, 23:13, "Sanjaykumar Bhola" <[EMAIL PROTECTED]> wrote: > Hi Friends, > > Can an