Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm trying to creat a macro which will copy and paste the value of a cell
(say G12 on a series of worksheets) to a newly created sheet "Summary". The code (so far) is below, but far short of what I want to acheive. Can someone help me? Sub GetMyCellValues() Dim ws As Worksheet Dim myCell As String i = 1 myCell = Application.InputBox("Enter Cell Reference") Sheets.Add ActiveSheet.Name = "Summary" For Each ws In Worksheets Worksheets(ws.Name).Select 'Worksheets(ws.Name).Range("a4").Select Worksheets(ws.Name).Range(myCell).Copy _ Destination:=Worksheets("Summary").Cells(i, 2) Worksheets("Summary").Cells(i, 1) = ws.Name i = i + 1 Next ws End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert a Number Code to a Text Code | Excel Discussion (Misc queries) | |||
Help! Lost sheets by using View Code on worksheet tab | Excel Discussion (Misc queries) | |||
adding a code to calculate how much time is lost | Excel Discussion (Misc queries) | |||
How do I keep a running total of pounds lost and percentage lost | Excel Discussion (Misc queries) | |||
my computor crashed and I lost my product code to reinstall how c. | Excel Discussion (Misc queries) |