Telephone Directory

mianmazher

Active Member
Joined
Jan 24, 2004
Messages
412
Book2
ABCD
1TelephoneIndex
2A
3B
4C
5D
6E
7F
8G
9H
10I
11J
12K
13L
14M
15N
16O
17P
18Q
19R
20S
21T
22U
23V
24W
25X
26Y
27Z
Index
Book2
ABCDEF
1NameAddressPhone1Phone2MobileEmailAddress
2
3
4
5
Data


I have the data in the Data sheet.

I have made 26 sheets starting A to Z

I have made a Index sheet


I want that upon entering the data in the Data Sheet is is autmatically copied in the Corresponding Letter specified Sheet.


Regards


Mian Mazher
 
Simple solution ...

In your contact list, add a column to get the first letter of the name.
= LEFT(A2,1)

Then add AutoFilter on the list, you can then filter the list to only the "A" or whatever letter you want.

There is no sens to duplicate the data on different sheets.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi mian. A few suggestions were given to you. What are your thoughts/problems with the given solutions?

It would be best if you acknowledged that others are giving solutions. If they are not useful to you, tell us why.

Coming up with a solution to your problem will take some brainstorming on everyone's part and we need to explore the ideas that are currently given.

-Todd
 
Upvote 0
Re: Telephone Directory / Address Book

Well Mian i am pasting a code For Macro Try This and tell me if it works
Code:
Sub Button1_Click()
'
' Button1_Click Macro
' Macro recorded 3/4/2004 by TheBuGz
'

Dim N As String

N = UCase(Left(Range("a2").Value, 1))
MsgBox (N)

Sheets("data").Activate
Range("A2:H2").Copy


For i = 2 To 27

    Sheets(i).Activate
    If ActiveSheet.Name = N Then
        ActiveSheet.Activate
        Range("A2").Select
            While Len(ActiveCell) > 0
                ActiveCell.Offset(1, 0).Activate
            Wend
        ActiveSheet.Paste
        Application.CutCopyMode = False
        Sheets("data").Activate
        Range("A2:H2").ClearContents
        Exit Sub
        
        Else: Sheets(i + 1).Activate
                On Error GoTo err
        
    End If
    
Next i

err:
MsgBox (err.Description)
Application.CutCopyMode = False
Exit Sub


'
End Sub

Try it and tell me if it works "A2:H2" is the range in The First Sheet Named "Data" and the Rest Sheets are from A-Z, There u can create 26 Sheets.
 
Upvote 0
Dear Mian!!

U and others members can Download the file from this link

Edited by NPO:

Please provide the source code, not the file, thanks.

Regards,
Nate
 
Upvote 0

Forum statistics

Threads
1,215,863
Messages
6,127,391
Members
449,382
Latest member
DonnaRisso

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