View Poll Results: Closed

Voters
0. This poll is closed
  • Closed

    0 0%
  • Closed

    0 0%
Multiple Choice Poll.
+ Reply to Thread
Results 1 to 8 of 8

VBA Code of an Array Formula

  1. #1
    Registered User
    Join Date
    12-10-2007
    Posts
    5

    VBA Code of an Array Formula

    ={SUM(Quantity*Price)} this formula can be done thru CTRL + SHFT+ ENTER
    However, how should we code it using VBA Code? Thanks!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-10-2007
    Posts
    5

    Arrow Converting Excel Array Formula to Excel VBA Coding

    Converting Excel Array Formula to Excel VBA Coding
    I have this formula with array after hitting CTRL+SHFT+ENTER

    {=SUM(IF(BSmo!$F$7:$Q$7=BS!$A$5,IF(BSmo!$D$13:$D$101=BS!D13,BSmo!$F$13:$Q$101)))}

    However when I tried converting to VBA Code it does not work..Could someone help me how do code this? And what is the coding for putting an array which in Excel we just hit CTRL+SHFT+ENTER

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Welcome to the forum.

    Do you want to use VB to put that formula in a cell?

    Or do you want to write a VB routine that will return the same result as that formula?

  5. #5
    Registered User
    Join Date
    12-10-2007
    Posts
    5

    Converting Excel Array Formula to Excel VBA Coding

    I want to know both procedures..then eventually I will just use the easier procedure with the same result..Thanks!

  6. #6
    Registered User
    Join Date
    06-11-2007
    Location
    Nonthaburee Province, Thailand
    MS-Off Ver
    MS Office 2003 to MS Office 2010
    Posts
    82

    Recording Macro

    Dear Rollet

    Please Using Macro Recorder to Get the code

    Tools --> Macro --> Recording Macro

    Then Put the formula in cell

    Tools --> Macro --> Stop Recording Macro

    Press Alt+F8 Then click Edit button to see the code.
    N. Yauvasuta
    Power User Excel.

  7. #7
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Why was this done as a Poll question

    What you have asked is not a poll
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    mudraker,

    I did tell Rollet before about this and he also posted a similar thread.

    Rollet,

    Please read the forum rules below again. If you continue to ignore them the posts may be deleted or you may be banned.

    VBA Noob

+ 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