Unhide/Hide Cells in table based on selected week

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
785
Office Version
  1. 365
Platform
  1. Windows
Hi,
im not sure if this is even possible but im looking for a way to store values in 1 table more than once
in example if this week is selected and values are inputted, after changing the date from a dropdown box the table will clear so i can enter data for the following week.
But i need the old data to be recalled.

Currently i save the worksheet as weekdate and have many files, but instead i would just like to use 1 if is doable.


bd27a3b165.png


if date in B2 is changed i want the data (C3:G8) to be stored so it can be recalled at anytime

can anyone provide a solution to this?
much appreciated
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
was thinking something like this but copy/pasting the same table multiple times isnt really ideal

Code:
If Range("A5").Value = 1 Then

 ActiveSheet.Cells.EntireRow.Hidden = False
    ActiveSheet.Cells.EntireColumn.Hidden = False
Rows("13:13").Select
    Range(Selection, Selection.End(xlDown)).Select
    Selection.EntireRow.Hidden = True


ElseIf Range("A5").Value = 2 Then


 ActiveSheet.Cells.EntireRow.Hidden = False
    ActiveSheet.Cells.EntireColumn.Hidden = False
Rows("12:12").Select
    Range(Selection, Selection.End(xlUp)).Select
    Selection.EntireRow.Hidden = True
Rows("25:25").Select
    Range(Selection, Selection.End(xlDown)).Select
    Selection.EntireRow.Hidden = True


End If
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top