$$Excel-Macros$$ Re: "Next" error

2009-03-24 Thread Ashish Jain
Hi Suresh, Remove the 8th line from your macro .i.e. "Next". It's not required. Here is modified code which is shorter and more readable than before. Tip: Always indent your program, it increase readability and hence error evaluations. Private Sub ok_Click() Dim a As Integer a = Val(tex

$$Excel-Macros$$ "Next" error

2009-03-24 Thread suresh k
Hi All, Can anyone check whether below codes are correct or not. I am getting error message while i run this code. Private Sub ok_Click() Dim a As Integer a = Val(text1.Text) If a = bp Then Application.ActiveSheet.Unprotect ActiveWorkbook.Unprotect UserForm1.Hide Next End If If a > 2 Then '

$$Excel-Macros$$ Re: Sort Table as per the order of records in another Table

2009-03-24 Thread Ashish Jain
Hi Maddy, Your query is quite simple and I wonder if you know VBA, Vlookup and every other thing then where did you stucked up? Since you've provided detailed info in algorithmic format, I've tried to solve your query. If this doesn't suffice you then you need to carefully look into your logic pr

$$Excel-Macros$$ Re: User input as an argument in duplicate deletion macro

2009-03-24 Thread First Casualty
Thanks Dave --~--~-~--~~~---~--~~ - Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel t

$$Excel-Macros$$ Re: Sort Table as per the order of records in another Table

2009-03-24 Thread Maddy
Harmeet, I am able to do sort & do a lookup and I can also write VBA code for the sort & lookup functions. However, my problem is the macro should sort the names in Valuation tab as per their order in PV tab, irrespective of their current location. Request you to go through my spreadsheet (espec

$$Excel-Macros$$ Re: Sort Table as per the order of records in another Table

2009-03-24 Thread Maddy
I request everyone who tries to answer my request, to go through my attached spreadsheet especially For Your Information Tab COMPLETELY and CAREFULLY. YET NOW NO ONE HAS PROVIDED ME CORRECT SOLUTION. I am wondering whether anyone correctly understand my issue or not. :( On Mar 23, 12:18 pm, Dili