• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Search results

  1. Sam Mathai Chacko

    Usuing custom Style in every sheet I open/create

    I don't understand EDIT: The code will do whatever you code (provided the syntax is correct). I am not sure what you mean.
  2. Sam Mathai Chacko

    Usuing custom Style in every sheet I open/create

    If you want to ignore those, just remove it from the code. Or am I understanding you incorrectly?
  3. Sam Mathai Chacko

    Match names and dates from source data

    =IF(ISNUMBER(MATCH(1,(C$3>=(OFFSET(v_empList,,1,,)*ISNUMBER(MATCH(v_empList,$B4,0))))*(C$3<=(OFFSET(v_empList,,2,,)*ISNUMBER(MATCH(v_empList,$B4,0)))),)),"X","") Try the attached file
  4. Sam Mathai Chacko

    Adding Timestamp to existing Macro

    When you say time stamp.. where do you need it? For example, if you write this at the end of your code, it will put a time stamp in Range("B2") Range("B2").Value = Now()
  5. Sam Mathai Chacko

    Usuing custom Style in every sheet I open/create

    Ronald, I'm sure you would have guessed by SirJB7's post above that I had only used the routine for a new workbook. To make the style for any workbook that is opened, all you had to do was go to the class selection drop-down, select appExcel class, and select the required event from the adjacent...
  6. Sam Mathai Chacko

    Combining If and Data Validation

    So when you say put's a drop-down menu, you mean a drop-down control (form control or active-x control)? Or just a data validation drop down?
  7. Sam Mathai Chacko

    Usuing custom Style in every sheet I open/create

    No you don't need to insert a Class module for that. I said 'Workbook class' module (it's basically the code module for the Workbook). I just mentioned 'class' because workbook is also a class.
  8. Sam Mathai Chacko

    Ribbon DatePicker Calendar Control For Excel 2007-2010

    Alright, I've tried to incorporate as much as I thought would add value. Thanks to SirJB7 for the valuable inputs. I must confess I couldn't come around a very reliable and easy way to display the words 'Day' and 'Calendar' in local languages. Having said that, I've given options to the users to...
  9. Sam Mathai Chacko

    Help with Macro

    Try this Sub SMC() Dim lng As Long With Worksheets("Sheet1") For lng = 1 To .Cells(Rows.Count, "A").End(xlUp).Row If .Range("A" & lng).Value <> "" Then .Range("G2").Value = .Range("A" & lng).Value .Range("H2").ClearContents...
  10. Sam Mathai Chacko

    Help with Macro

    I didn't notice Smallman had already replied. Did you try his suggestion? By the way, why do you want to copy the content of the entire query table to the next sheet? You could still stick to your original way of summing up values using formula, but instead of using H2 in my above code, you...
  11. Sam Mathai Chacko

    Help with Macro

    How about adding a workaround like this Sub SMC() Dim lng As Long With Worksheets("Sheet1") For lng = 1 To .Cells(Rows.Count, "A").End(xlUp).Row If .Range("A" & lng).Value <> "" Then .Range("G2").Value = .Range("A" & lng).Value...
  12. Sam Mathai Chacko

    On Error Doubt

    http://www.excelfox.com/forum/f23/difference-between-on-error-goto-0-and-on-error-goto-1-a-894/
  13. Sam Mathai Chacko

    On Error Doubt

    For i = 2 To uLinha On Error GoTo adicionar procurar = WorksheetFunction.Match(Sheets("Termos").Cells(i, 7), intervalo, 0) Sheets("MtM").Cells(7, procurar) = Sheets("Termos").Cells(i, 20) Sheets("MtM").Cells(5, procurar) = Sheets("Termos").Cells(i, 21) Err.Clear:On Error GoTo...
  14. Sam Mathai Chacko

    Help with Macro

    This should do it. Tweak as and where necessary.' Sub SMC() Dim lng As Long With Worksheets("Sheet1") For lng = 1 To .Cells(Rows.Count, "A").End(xlUp).Row If .Range("A" & lng).Value <> "" Then .Range("G2").Value = .Range("A" & lng).Value...
  15. Sam Mathai Chacko

    On Error Doubt

    Like this? For i = 2 To uLinha On Error GoTo adicionar procurar = WorksheetFunction.Match(Sheets("Termos").Cells(i, 7), intervalo, 0) Sheets("MtM").Cells(7, procurar) = Sheets("Termos").Cells(i, 20) Sheets("MtM").Cells(5, procurar) = Sheets("Termos").Cells(i, 21) GoTo...
  16. Sam Mathai Chacko

    Usuing custom Style in every sheet I open/create

    Copy and paste this to your Personal.xlsb Workbook class module. Then restart Excel application. The pattern I used is just a sample that I made myself. You can of course customize it according to your need. Option Explicit Private WithEvents appExcel As Application Private Sub...
  17. Sam Mathai Chacko

    excel problem

    Without knowing much about the file, my suggestion would be to first try these options 1. Try saving the file in Binary format (.xlsb). 2. Before opening the file, change the calculation mode to Manual
  18. Sam Mathai Chacko

    Matching row and column headers against a table

    Drag down and across =SUMIFS(Extract!$C$2:$C$16,Extract!$A$2:$A$16,'Top Sheet'!$A3,Extract!$B$2:$B$16,'Top Sheet'!C$2)
  19. Sam Mathai Chacko

    use Calender Control for table

    Can you please rephrase your requirement. For one, if you're using =if($d$4<>c2,if(b3="",$d$4,b3)'"") in B3 and dragging down, that will cause a circular reference. So either I'm not interpreting it right, or you're not explaining it right. If you think a sample file will add more clarity...
  20. Sam Mathai Chacko

    Copy ID between sheets then add rows based on contract length

    I am not sure how my solution is different from what you are saying. The irony is that I've done exactly as you've indicated. Can you once again, please, download the file, and tell me what is not matching with what you are saying. Here's the attachment please (it's the same as above, except...
  21. Sam Mathai Chacko

    Copy ID between sheets then add rows based on contract length

    And to take care of that additional requirement, it's just an addition of the value =IFERROR(INDEX(MediaBuy!$A$3:$A$698,IF(COUNTIF(A$2:A2,A2)=3+INDEX(MediaBuy!$F$3:$F$698,MATCH(A2,MediaBuy!$A$3:$A$698,0)),MATCH(A2,MediaBuy!$A$3:$A$698,0)+1,MATCH(A2,MediaBuy!$A$3:$A$698,0))),MediaBuy!$A$3)
  22. Sam Mathai Chacko

    Copy ID between sheets then add rows based on contract length

    I beg to differ. My current screen shows there was only one download of the file. And that was me! My attachment clearly answers your question. Except for the additional requirement you posted later.
  23. Sam Mathai Chacko

    Using the contents of an array in other procedures

    Not stepping on anybody's shoe, but there's no Orange text... you'll need to edit your post and correct the format (suggest removing the entire code text, and replacing it fresh)
  24. Sam Mathai Chacko

    Determining Location of Value in X and Y coordinates.

    Having said that, did you try my formula? That you don't need to enter as a CSE formula.
Back
Top