+ Reply to Thread
Results 1 to 10 of 10

trying to freeze a sheet

  1. #1
    Registered User
    Join Date
    12-17-2007
    Posts
    5

    trying to freeze a sheet

    I have multiple sheets as part of my excel calculations which refer to the first sheet in the group. Each one calculates different values for me based on the numbers I put into the sheet.

    So to put in these numbers, I insert new rows to the start of the sheet which is what I always want it to calculate. Some of the calculations are comparative to other points from my original page. So I might ask it to go back and compare to 3 months ago or 6 months ago.

    Long story short, when I insert those new rows, the formula on the other pages shift down to stay on the previous days data. How can I lock it in so it stays focused on just the cell I tell it to reguardless of how I move those cells around. So when i hit insert, I still want it focused on that sheets A1 and NOT A2.

    I attempted to look up the help section but since I am having a hard time putting this into words, help was not much "help".

    If anyone can point me in the right direction here it would be most welcome. Thank you,

    Jason

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    Quote Originally Posted by jcdean78

    So when i hit insert, I still want it focused on that sheets A1 and NOT A2.



    Jason
    =$A$1
    the dollar sign makes it absolute

  3. #3
    Registered User
    Join Date
    12-17-2007
    Posts
    5
    When I attempt that it says there is an error.

    For example the sheet it is referencing is called Current while the sheet I am on is called lw

    So the way its set up now is...
    =Current!A1

    I tried both of these below and it game me an error saying I could not do it.
    =Current$A$1
    =Current$A1

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    Quote Originally Posted by jcdean78
    When I attempt that it says there is an error.

    For example the sheet it is referencing is called Current while the sheet I am on is called lw

    So the way its set up now is...
    =Current!A1

    I tried both of these below and it game me an error saying I could not do it.

    =Current$A1
    Your missing the !
    =Sheet3!$A$1
    or
    =Current!$A$1
    another way is to press the = key
    then go to the cell you want to reference, even if it's on another sheet,
    select the cell the press F4, this makes the reference absolute, then enter key

  5. #5
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Looks like you deleted the ! out of the formula
    Try
    =Current!$A$1
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  6. #6
    Registered User
    Join Date
    12-17-2007
    Posts
    5
    Thank you so much, this was a huge help.

  7. #7
    Registered User
    Join Date
    12-17-2007
    Posts
    5
    Well the code worked but when I went to look at my numbers today, they all shifted along with the first page. So instead of it being A1 when I inserted the new row, the second page is now referencing A2.

    from second sheet
    =Current!$A$1

    After inserting a row on the first sheet this is what the second sheet reads
    =Current!$A$2

    Any more ideas?

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =INDIRECT("Current!A"&ROW(A1))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  9. #9
    Registered User
    Join Date
    12-17-2007
    Posts
    5
    Works perfect so far, thanks a ton!

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Your welcome

    Could also try

    Please Login or Register  to view this content.
    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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