+ Reply to Thread
Results 1 to 4 of 4

VBA Function to select different worksheet and refresh cell

  1. #1
    Registered User
    Join Date
    03-19-2010
    Location
    Felixstowe
    MS-Off Ver
    Excel 2003
    Posts
    34

    VBA Function to select different worksheet and refresh cell

    Hi!

    This is doing my head in now, lol.

    I want to create a new function that will select a named worksheet and then select a specific cell and refresh the cell. The selection of the cell is dependant on criteria specified in the function brackets. For example I have a sheet called PC Distance and want to select cell 9, 5. So I created:

    Please Login or Register  to view this content.
    Now it's not working at all, I've tried to just use the ActiveWorkbook.Sheets part still nothing. Can someone help please

  2. #2
    Registered User
    Join Date
    08-06-2013
    Location
    Quebec
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: VBA Function to select different worksheet and refresh cell

    Maybe with:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,654

    Re: VBA Function to select different worksheet and refresh cell

    Are you using this as a custom worksheet function? If yes, worksheet functions cannot select or change other cells. They just return results to the cell they are located in.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    03-19-2010
    Location
    Felixstowe
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: VBA Function to select different worksheet and refresh cell

    Damn.... back to the drawing board then

    Thanks for the reply

+ 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. Macro to select worksheet based on cell value and then return data to diff worksheet
    By clnossok in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2013, 07:48 PM
  2. Replies: 2
    Last Post: 12-20-2010, 09:59 PM
  3. [SOLVED] Customized function (in cell) does not refresh value :o(
    By MarcL in forum Excel General
    Replies: 3
    Last Post: 02-28-2006, 05:00 PM
  4. [SOLVED] No refresh in target cell when using worksheet.cells.formula = ...
    By Auke in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2005, 10:15 AM
  5. Refresh Pivot Table from other worksheet cell entry
    By ShaneS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2005, 11:05 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