Solved

Populate like cells across worksheets without a command button

Posted on 2014-04-20
4
232 Views
Last Modified: 2014-04-20
Folks,
I have a workbook with worksheets labeled
Consolidate
Jan13
Feb13
.
.
Dec14
In Jan13 at M2 my client wants to enter a number and have that number populate to all other worksheets except Consolidated (fortunately ALL other worksheets are identical) at the same cell location in other worksheets. In other words, go to M2 in Jan13, enter in XXXX and all other worksheets at M2 will have XXXX
I showed him that all he needs to do is select all sheets except Consolidated, go to M2 and enter what he wants. He does not want to do that, not can I use a command button.
0
Comment
Question by:Frank Freese
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Raheman M. Abdul earned 250 total points
Comment Utility
You need to do the following only once.
Select cell M2 of Feb13 Cell and control+click all the sheets except cosolidated and the Jan13 sheets and type the following formula :

=Sheet1!$M$2

Whenever user enters some data in Jan13's M2 cell then it will copy automatically in all the sheets except consolidated sheet as required
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 250 total points
Comment Utility
Or try this macro

Right-click on the sheet tab name for Jan13
select view code
paste this code in the VBA window
Close the VBA window

Private Sub Worksheet_Change(ByVal Target As Range)
    Dim ws As Worksheet
    If Target.Address = Range("M2").Address Then
        For Each ws In ThisWorkbook.Worksheets
            If ws.Name <> "Consolidate" Then
                ws.Range("M2").Value = Target.Value
            End If
        Next ws
    End If
End Sub
0
 

Author Comment

by:Frank Freese
Comment Utility
OK...after church I'll look at both of those
0
 

Author Closing Comment

by:Frank Freese
Comment Utility
Thank folks - - -
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now