+ Reply to Thread
Results 1 to 6 of 6

Ctrl+Shift+Enter for arrays

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-12-2005
    Posts
    143
    I'm not to sure myself Ed, and I don't fancy having to rewrite using sum product.

    What about using a procedure that when run, will go through a column of cells, Ctrl shifting and entering until a blank is found? Unfortunately I'm still pretty amateurish with looping and procedures...so anyone have any ideas?

    regards,

    chris

  2. #2
    Jim Thomlinson
    Guest

    Re: Ctrl+Shift+Enter for arrays

    This should be a start for you. It converts all of the formulas in Column A
    to array formulas. You just need to change Sheet1, A1 and A...

    Sub MakeArray()
    Dim wks As Worksheet
    Dim rngToConvert As Range
    Dim rngCurrent As Range

    Set wks = Sheets("Sheet1")
    With wks
    Set rngToConvert = .Range(.Range("A1"), .Cells(Rows.Count,
    "A").End(xlUp))
    End With
    For Each rngCurrent In rngToConvert
    rngCurrent.FormulaArray = rngCurrent.Formula
    Next rngCurrent
    End Sub

    --
    HTH...

    Jim Thomlinson


    "chris100" wrote:

    >
    > I'm not to sure myself Ed, and I don't fancy having to rewrite using sum
    > product.
    >
    > What about using a procedure that when run, will go through a column of
    > cells, Ctrl shifting and entering until a blank is found? Unfortunately
    > I'm still pretty amateurish with looping and procedures...so anyone
    > have any ideas?
    >
    > regards,
    >
    > chris
    >
    >
    > --
    > chris100
    > ------------------------------------------------------------------------
    > chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
    > View this thread: http://www.excelforum.com/showthread...hreadid=505031
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1