+ Reply to Thread
Results 1 to 5 of 5

Macro doesnt do any change but there is no error shown

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Question Macro doesnt do any change but there is no error shown

    Hi, all

    I tried using LINEST() in VBA environment and there's no changes in my sheet, here's my code:

    Please Login or Register  to view this content.
    I have tried code in line RowEnd and ColEnd in test environment and I succeed to get the actual value that I wanted. Hence, I believe the problem is with the LINEST function that I tried to write (highlighted in red). Can I know where did I do wrong in the my code?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Macro doesnt do any change but there is no error shown

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro doesnt do any change but there is no error shown

    If you wanted to put the value from the variable v into K2:N2 on Regression (2) the code would look like this.
    Please Login or Register  to view this content.
    Whether that will give you the result(s) you want is difficult to tell without seeing some sample data.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Macro doesnt do any change but there is no error shown

    Thank you for the reminder, TMS and sorry about that.

    Thank you, Norie! That works.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Macro doesnt do any change but there is no error shown

    No worries. I was thinking the same as Norie but I hate offering solutions without testing them.

+ 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. [SOLVED] Macro doesnt Paste, can't find the error
    By Dubrock in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2015, 05:59 AM
  2. Replies: 3
    Last Post: 07-01-2015, 09:53 PM
  3. [SOLVED] Run macro when cell is changed(also as a result of listboxchange-change event doesnt work)
    By drrazor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2014, 04:13 PM
  4. [SOLVED] Change time if under 8 hours is shown.
    By GrahamUK33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2013, 12:49 PM
  5. macro error > object doesnt support property
    By jw01 in forum Excel General
    Replies: 1
    Last Post: 07-24-2011, 05:06 PM
  6. change formula so it doesnt retun #value!
    By stevesunfold in forum Excel General
    Replies: 2
    Last Post: 11-29-2008, 06:22 AM
  7. Error 91 - Sometimes happens, sometimes it doesnt.
    By BerkshireGuy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2005, 09:05 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