+ Reply to Thread
Results 1 to 14 of 14

Index Formulas into VBA Code - issue with additional " "

  1. #1
    Registered User
    Join Date
    11-14-2017
    Location
    Montreal, Canada
    MS-Off Ver
    Office 365
    Posts
    38

    Index Formulas into VBA Code - issue with additional " "

    Hello!
    I am trying to put this formulas into Userform VBA:

    Please Login or Register  to view this content.
    Even if I put additional " " it doesn't work properly.

    Could someone please help me?
    Many thanks!
    Last edited by scoclu; 11-29-2017 at 10:47 PM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Index Formulas into VBA Code - issue with additional " "

    Not in to cell?
    try something like
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-14-2017
    Location
    Montreal, Canada
    MS-Off Ver
    Office 365
    Posts
    38

    Re: Index Formulas into VBA Code - issue with additional " "

    Thanks Jindon, sorry let me be more specific,

    In fact I have to add this formula
    Please Login or Register  to view this content.
    Private Sub cmbAddRecord_Click()
    Dim arrNewData

    Please Login or Register  to view this content.
    Many thanks!
    Last edited by scoclu; 11-29-2017 at 10:47 PM.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Index Formulas into VBA Code - issue with additional " "

    1)
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    2)
    Is it just
    Please Login or Register  to view this content.
    ?

  5. #5
    Registered User
    Join Date
    11-14-2017
    Location
    Montreal, Canada
    MS-Off Ver
    Office 365
    Posts
    38

    Re: Index Formulas into VBA Code - issue with additional " "

    Sorry stll not working, I am having an error with ' before MASTER...

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Index Formulas into VBA Code - issue with additional " "

    How are you entering to the cell?
    is it just Formula? or FormulaR1C1?

  7. #7
    Registered User
    Join Date
    11-14-2017
    Location
    Montreal, Canada
    MS-Off Ver
    Office 365
    Posts
    38

    Re: Index Formulas into VBA Code - issue with additional " "

    It will be like this :

    Please Login or Register  to view this content.


    But it's not working because of the ' in the Index formula
    Thanks a lot
    Last edited by scoclu; 11-29-2017 at 11:30 PM.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Index Formulas into VBA Code - issue with additional " "

    If I just enter
    Please Login or Register  to view this content.
    It works, assuming Soumission is a named range.

  9. #9
    Registered User
    Join Date
    11-14-2017
    Location
    Montreal, Canada
    MS-Off Ver
    Office 365
    Posts
    38

    Re: Index Formulas into VBA Code - issue with additional " "

    Sorry still not working because of the ' of the 'MASTER SOUMISSION'! part...

    You are right Soumission is a named range of the Index formula,
    Thanks!

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Index Formulas into VBA Code - issue with additional " "

    Isn't it a sheet name?

    If you upload a workbook, it will help to know the situation...

  11. #11
    Registered User
    Join Date
    11-14-2017
    Location
    Montreal, Canada
    MS-Off Ver
    Office 365
    Posts
    38

    Re: Index Formulas into VBA Code - issue with additional " "

    Hello Jindon, sorry for the delay,

    Finally a genius named Mike, found the formulas:
    Please Login or Register  to view this content.
    For those trying to find the solution, remember to respect the "
    Thanks

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Index Formulas into VBA Code - issue with additional " "

    That's what I originally posted.

    You have extra ) in your Array
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    11-14-2017
    Location
    Montreal, Canada
    MS-Off Ver
    Office 365
    Posts
    38

    Re: Index Formulas into VBA Code - issue with additional " "

    ¨Perfect! thanks Jindon for your help,

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Index Formulas into VBA Code - issue with additional " "

    You are welcome and thanks for the rep.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. Replies: 2
    Last Post: 09-26-2015, 02:34 PM
  4. Macro Button Issue - Opening additional Excel "shells"
    By mattm11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2014, 12:37 PM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. Replies: 2
    Last Post: 08-31-2012, 05:25 PM
  7. Additional Code for Picture in my "ID Request Form" Project
    By bong25 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2009, 05:53 PM

Tags for this Thread

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