Consulting

Results 1 to 6 of 6

Thread: Dbl Click in cell(dot) ?

  1. #1

    Dbl Click in cell(dot) ?

    Hi.
    Can this do?
    Double Click with VBA in the CELL-dot?
    See attachment.

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    and this will allow you to do what?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    Fill down Formula.
    If i use fill down formula 12 000 or more cells my codes very slow:20..50sec.

    [VBA]Sub FillFO() ''
    Dim LastRow As Long
    Range("B1").Select
    ActiveCell.FormulaR1C1 = "=SUM(RC[-1]*2)"
    With ActiveSheet
    LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
    Range("B1:B" & LastRow).FillDown
    End With
    End Sub
    [/VBA]

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    [VBA] Dim rng As Range
    Set rng = Range(Selection.Offset(, -1), Selection.Offset(, -1).End(xlDown))
    If Not rng(1).Offset(1) = "" Then
    Selection.AutoFill Destination:=rng.Offset(, 1)
    End If
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Thanks mdamackillop.
    But my formula : =SUMIF('2'!A:A;C1;'2'!B:B)
    You variant not faster.
    Sry.
    [VBA]With ActiveSheet
    Range("A1").Activate
    ActiveCell.Offset(0, 3).FormulaR1C1 = "=SUMIF(2!C[-3],RC[-1],2!C[-2])"
    Range("D1").Activate
    Set rng = Range(Selection.Offset(, -1), Selection.Offset(, -1).End(xlDown))
    If Not rng(1).Offset(1) = "" Then
    Selection.AutoFill Destination:=rng.Offset(, 1)
    End If
    End With
    [/VBA]

  6. #6
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    I was answering your original post, not the later question.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •