+ Reply to Thread
Results 1 to 8 of 8

VBA for formula

  1. #1
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    VBA for formula

    Hi

    I need some help on the attached spreadsheet. I have the below formula input in column S to retrieve the survey date from the survey detail tab. Will somebody be able to provide me some assistance to convert this to VBA coding instead of putting the formula in every cell.

    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: VBA for formula

    Try
    Please Login or Register  to view this content.
    Last edited by jindon; 08-12-2017 at 11:47 PM.

  3. #3
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: VBA for formula

    Hi

    The VBA formula worked but i encountered an error in the sense that the first 2 rows on column S. S2 copied the header and S3 showed blank. S4 onwards showed up accurately. Is there a way to rectify that.

    I also noticed that the formula was copied in column S. Basically why I need to convert this to VBA is because I'm linking this report to be extracted for an external dashboard. the formulas in the cells are causing an error. I am trying to not let the formulas be copied on the actual cells but to work from VBA instead. Is that possible.
    Last edited by Shamz41; 08-13-2017 at 12:05 AM.

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

    Re: VBA for formula

    I don't understand what you are saying.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: VBA for formula

    Hi Jindon,

    Ok the error for the first 2 rows doesn't occur now. Can i check on my second query.

    - noticed that the formula was copied in column S. Basically why I need to convert this to VBA is because I'm linking this report to be extracted for an external dashboard. the formulas in the cells are causing an error on the dashboard when there is another input other than a date. I am trying to not let the formulas be copied on the actual cells but to work from VBA instead. which means the formulas should not show up on column S but work work from the VBA platform instead. Is that possible?

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

    Re: VBA for formula

    What do you mean by "external dashboard"?

    Is it different workbook?

  7. #7
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: VBA for formula

    yup. the other workbook retrieves data from this report by multiple formulas. an input other than a date entry is causing an error to show up. I wanted to try if an VBA conversion of the formula will avoid that since the cells are blank in column s in that case. Will that be possible? Cause now i can see that the formulas are filled downed in column S.

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

    Re: VBA for formula

    Then nothing I can do without the information about "external dashboard".

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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