+ Reply to Thread
Results 1 to 3 of 3

Worksheetfunction

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Worksheetfunction

    Hi Friends,

    I would need your help in solving the below queries.

    Q1. Any formulas code that I write thru macro. For ex, activecell.value=WorksheetFunction.VLookup, WorksheetFunction.sum etc.,. and after the macro is executed. The formulas are not visible in the cell, which means the formulas are not autorefreshed If I have any new values. How do I make it auto refreshed or autocalculate by the excel itself based on the new values.

    Q2. When I try the below macro in excel, if the vlookup target is not found the activecell should pick False as the value. but it is not picking. How do I do it?

    ActiveCell.Value = WorksheetFunction.VLookup(ActiveCell.Offset(0, -1), Range("Sheet1!B:C"), 2, False)

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Worksheetfunction

    Please Login or Register  to view this content.
    Last edited by patel45; 11-18-2013 at 02:30 PM.
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Worksheetfunction

    Hi, pra.icwa,

    you would need to alter the title of this thread as you may find explained inForum Rule #1.

    You should try and use Formula instead of Value:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. VBA Worksheetfunction
    By TrueTears in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2013, 12:21 PM
  2. Cos & Sin WorksheetFunction
    By gsandy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2009, 06:03 PM
  3. WorksheetFunction
    By stoney1977 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2008, 02:19 PM
  4. WorksheetFunction gives zero value
    By helmekki in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2007, 08:48 PM
  5. Can't use WorksheetFunction
    By Yossi in forum Excel General
    Replies: 5
    Last Post: 01-25-2006, 06:10 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