+ Reply to Thread
Results 1 to 8 of 8

First Sheet,Same Data Second Sheet Automatically

  1. #1
    Registered User
    Join Date
    03-29-2009
    Location
    Drama,Greece
    MS-Off Ver
    Excel 2007
    Posts
    5

    First Sheet,Same Data Second Sheet Automatically

    Hi..
    I want to ask something because i am not sure if can work....

    I have create a file in Excel....
    In first sheet i have 4 columns that take data from a database...
    I also use a macro button that refresh the data when user hit on it....

    Now i wanna ask something in that case and general for excel....
    When i make some changes in first sheet (sheet1) i wanna do the same in sheet 2 automatically....

    For example if i type in a cell in first sheet a value i want excel do the same in second sheet... Can this happen??????? How i can do that????? Any ideas???

    Thanks in advance for your help

  2. #2
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: First Sheet,Same Data Second Sheet Automatically

    You can paste code in 1st sheet to copy data in 2nd sheet ... so whenever u'll make any change below macro will run ....

    Private Sub Worksheet_Change(ByVal Target As Range)

    End Sub

  3. #3
    Registered User
    Join Date
    03-29-2009
    Location
    Drama,Greece
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: First Sheet,Same Data Second Sheet Automatically

    Hi
    Sorry i didnt get you....Can you explain little more.... I have already one button in first sheet... I want my second sheet clear from buttons just have the data from first sheet... Can you give me some steps??Do i need to write code? I dont wanna do again button with macro because its the same

  4. #4
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: First Sheet,Same Data Second Sheet Automatically

    you can call below macro in ur first macro which is using to bring data from other sheet mean just call clear_sheet2 macro start of ur 1st macro which will firstly clear 2nd form then copy the data from sheet1 to sheet 2 .....



    Sub ClearSheet2()
    '

    ' If you are on Sheet 1 and want sheet2 contents clear then please call this macro in First button
    ' macro


    Sheets("Sheet2").Select
    Cells.Select
    Selection.Clear
    Range("E8").Select
    Sheets("Sheet1").Select


    End Sub

  5. #5
    Registered User
    Join Date
    03-29-2009
    Location
    Drama,Greece
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: First Sheet,Same Data Second Sheet Automatically

    Hi again....
    I wrote that code in my button in first sheet and doesnt work... i think i do something wrong... In this button i had only record the process of refresh.. Can i use the same button to copy the data to second sheet??????

  6. #6
    Registered User
    Join Date
    03-29-2009
    Location
    Drama,Greece
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: First Sheet,Same Data Second Sheet Automatically

    Can you give me exactly the steps so to be sure i do the same thing???
    Sorry for disturb you again

  7. #7
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: First Sheet,Same Data Second Sheet Automatically

    My code is only refreshing the data of 2nd sheet ... can you attach the file with your requirements so that i can check it out .....

  8. #8
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Re: First Sheet,Same Data Second Sheet Automatically

    Maybe the easiest way to do this is by selecting both the 1st and 2nd sheet simultaneously

    Any changes you make in the 1st sheet will automatically be made in the 2nd sheet


    And maybe another sulution is to do your thing in the 1st sheet and than copy it

    Hope this helps
    Hein

+ 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