+ Reply to Thread
Results 1 to 7 of 7

Insert array function in macro

  1. #1
    Forum Contributor
    Join Date
    06-23-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    239

    Insert array function in macro

    Ok so I have figured out the first part of my macro to do formula in a added cell.

    Please Login or Register  to view this content.


    But need help with this one.
    I am trying to get a macro to do the ODD/EVEN PATTERN for my numbers with this formula.



    as a macro. So when I click my insert button everything is done automatically, then all I have to do is input the data in to the cells.

    Can someone help??

    I have attached the workbook

    Thank you,
    Last edited by b_rianv; 09-01-2014 at 10:02 AM.

  2. #2
    Forum Contributor
    Join Date
    06-23-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    239

    Re: Macro

    Sorry forgot to add a Subject to post.....Subject: Macro pattern

    Please forgive me, in a hurry to get off to work and was up all night trying to figure this out

    Brian

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Macro

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  4. #4
    Forum Contributor
    Join Date
    06-23-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    239

    Re: Macro Pattern Help

    Add title...

    So I have these macros working
    Please Login or Register  to view this content.
    This is to add a new row in my database

    This is to add first formula to cell after adding a new row
    Please Login or Register  to view this content.
    Just need help with the odd/even pattern macro with this formula
    =IF(ISODD(B2),"O","E")&IF(ISODD(C2),"O","E")&IF(ISODD(D2),"O","E")&IF(ISODD(E2),"O","E")&IF(ISODD(F2),"O","E")&IF(ISODD(G2),"O","E")...enter as a array

    So when I click my button in the sheet all everything is done and then I can input my dtata.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Macro Pattern Help

    Try

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-23-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    239

    Re: Insert array function in macro

    I will test this tonight when I get home from work

  7. #7
    Forum Contributor
    Join Date
    06-23-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    239

    Re: Insert array function in macro

    Work perfectly!! Thanks Zbor. I was using the {} in my macro instead of typing (FormulaArray) which you did.

    Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using a macro on workbook1 to create a button in wb2 and assigning macro "wb2!macro"
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:39 AM
  2. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  3. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  4. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  5. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM

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