Need to create linked sheets
Closed
luigidelmonte
Posts
18
Registration date
Sunday August 18, 2019
Status
Member
Last seen
January 24, 2020
-
Aug 18, 2019 at 03:27 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Aug 26, 2019 at 12:04 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Aug 26, 2019 at 12:04 PM
Related:
- Need to create linked sheets
- Create skype account with gmail - Guide
- Sheets right to left - Guide
- Create snapchat account - Guide
- Create hotmail account - Guide
- Create instagram account on pc - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Aug 20, 2019 at 12:06 PM
Aug 20, 2019 at 12:06 PM
Hi Luigi,
The code below will take every new entry from column F of "86 sheet" and copies it to column A of "Hotel unavailable". Column A of "Hotel unavailable" is then sorted A>Z.
Here is the code:
To use the code; right-click "86 sheet" sheets tab and select view code and paste the code in the big white field.
Best regards,
Trowa
The code below will take every new entry from column F of "86 sheet" and copies it to column A of "Hotel unavailable". Column A of "Hotel unavailable" is then sorted A>Z.
Here is the code:
Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Columns("F")) Is Nothing Then Exit Sub With Sheets("Hotel unavailable") .Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Value = Target.Value .Columns("A").Sort Key1:=.Columns("A"), Header:=xlYes End With End Sub
To use the code; right-click "86 sheet" sheets tab and select view code and paste the code in the big white field.
Best regards,
Trowa
luigidelmonte
Posts
18
Registration date
Sunday August 18, 2019
Status
Member
Last seen
January 24, 2020
Aug 18, 2019 at 03:29 PM
Aug 18, 2019 at 03:29 PM
Updated on Aug 20, 2019 at 12:34 PM
Aug 20, 2019 at 02:40 PM
Aug 22, 2019 at 11:59 AM
1. Removing item from "Hotel unavailable" sheet when it is deleted from "86 sheet" sheet.
1a. You could run a different macro to delete the item from both sheets. You could assign a shortcut to the macro for easy acces.
1b. But I'm noticing you have the same value in column D. We could use that value to delete the item in the "Hotel unavailable" sheet. This won't require a different action, but when column D is empty the item won't get deleted from the "Hotel unavailable" sheet.
Code for solution 1b:
2. "also the data just goes until column 5"
Do you mean only 5 items will be copied to the "Hotel unavailable" sheet? This doesn't make any sense to me. Could you maybe give an example to help understand?
Best regards,
Trowa
Aug 22, 2019 at 12:06 PM
I mean I want all of the items for the "hotel" to be copied in the "hotel unavailable" sheet but when I was doing it, it just copies 5 items
Aug 26, 2019 at 12:02 PM
So what you are saying is that, looking at your example, only 5 out of 8 items were copied to the "Hotel unavailable" sheet? For an item to be copied it has to be reconfirmed (double-click cell and hit enter).
I'm still not sure if that is what you meant. But I can't figure out what else you could mean.
Best regards,
Trowa