Share via

=Prevsheet function

Anonymous
2012-07-04T00:14:30+00:00

I am using the =prevsheet(a9) function in my workbook and it works fine. However, when i open up another workbook at the same time the cells in the first workbook with the =prevsheet formulas show"VALUE" instead of the numbers. To get rid of the  VALUE i have to go into one of the cells and hit enter and all the numbers come back. How can i avoid this happening everytime i open of another workbook at the same time?

I use my workbook for cash forecasting purposes and it is risky to have the numbers change.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2012-07-04T22:01:43+00:00

    Try this simplified version. When I try it, opening another workbook doesn't affect the result of the formula.

    Function PrevSheet(rng As Range)

        Application.Volatile

        PrevSheet = rng.Parent.Previous.Range(rg.Address)

    End Function

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-07-04T21:48:32+00:00

    No the problem is not solved. When I open up a second workbook while having the first workbook open with the prevsheet function,  the cells show Value in the first workbook.

    The prevsheet function works in the first workbook but as soon as I open up another workbook my figures disappear. I have to click in one of the cells with the formula in workbook 1 and hit enter and then all my figures display again. i want to void this.,,

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2012-07-04T20:04:36+00:00

    So the problem is solved? Good to hear that.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2012-07-04T19:19:29+00:00

    I'm not sure...i followed the steps listed on this site and it worked...

    http://www.pcreview.co.uk/forums/transfer-variable-balance-one-worksheet-next-t3182078.html

    Was this answer helpful?

    0 comments No comments
  5. HansV 462.6K Reputation points
    2012-07-04T04:39:06+00:00

    PrevSheet is a custom function, not a built-in function. There are several versions of it around. Which one are you using?

    Was this answer helpful?

    0 comments No comments