Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Macro to populate same cell on multiple worksheets

I have a workbook consisting of multiple worksheets (e.g. worksheet 1 thru
50). I am creating a dash board worksheet (Job Set-Up) that will enable
the user to input a cell selection (A1) that will populate a specified cell
(B1) on specified worksheets (WS-2, WS-4, etc.)

I have limited experience with VBA therefore, I try to utilize the record
macro capabilities whenever possible. I have recorded the following macro
that copies and pastes (special) the values from A1 on WS-1 to B1 on WS-2 and
then returns back to the dashboard.

Sub Macro1()

Range("A1").Select
Selection.Copy
Sheets("WS-2").Select
Range("B1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Sheets("WS-1").Select
Application.CutCopyMode = False
End Sub

I want to edit this macro to paste the same values in cell B1 on certain
specified worksheets such as WS-4 and WS-6.

Is there a loop code that I can add to my recorded macro?

Many thanks in advance!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate central worksheet template from multiple worksheets wcurtis Excel Discussion (Misc queries) 0 December 24th 08 10:10 PM
Macro to populate multiple tabs from a master file Tanya Excel Discussion (Misc queries) 3 December 9th 08 09:51 PM
populate multiple worksheets in one workbook cmarsh Excel Discussion (Misc queries) 3 October 31st 07 04:23 PM
how do I get a macro to change a cell in multiple worksheets? BB_XLNovice Excel Discussion (Misc queries) 1 April 27th 07 07:04 PM
How do you populate one spreadsheet from multiple worksheets in a. Curious Excel Worksheet Functions 0 May 9th 06 09:50 PM


All times are GMT +1. The time now is 10:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"