Excel solution
Closed
eexpert
Posts
2
Registration date
Friday June 7, 2013
Status
Member
Last seen
June 28, 2013
-
Jun 7, 2013 at 08:51 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jun 10, 2013 at 11:52 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jun 10, 2013 at 11:52 AM
Related:
- Excel solution
- Driver pack solution - Download - Cleaning and optimization
- Excel mod apk for pc - Download - Spreadsheets
- Number to words in excel - Guide
- Excel marksheet - Guide
- Kernel for excel - Download - Backup and recovery
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jun 10, 2013 at 11:52 AM
Jun 10, 2013 at 11:52 AM
Hi Eexpert,
Here you go:
Please implement code by right-clicking the sheets' tab and pasting the code in the big white field.
The code will only run when something is entered (not when something is removed) in column H.
If the city doesn't have it's own sheet yet, a message will display.
Make sure column A contains data when entering city in the respective row. (let me know if this is an issue)
Hope you like.
Best regards,
Trowa
Here you go:
Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Columns("H")) Is Nothing Or Target.Value = vbNullString Then Exit Sub On Error GoTo Message Target.EntireRow.Copy Sheets(Target.Value).Range("A" & Rows.Count).End(xlUp).Offset(1, 0) Exit Sub Message: MsgBox ("Please check if you made a sheet named after this city or" & Chr(10) & "for typo's and try again.") End Sub
Please implement code by right-clicking the sheets' tab and pasting the code in the big white field.
The code will only run when something is entered (not when something is removed) in column H.
If the city doesn't have it's own sheet yet, a message will display.
Make sure column A contains data when entering city in the respective row. (let me know if this is an issue)
Hope you like.
Best regards,
Trowa