PC Review


Reply
Thread Tools Rate Thread

Copy cells & sheet name to master sheet

 
 
cottage6
Guest
Posts: n/a
 
      23rd Apr 2008
Hello and HELP!
I need to copy some cells in various rows and also return the sheet name to
a master sheet where all will be layed out in a row. I'm running into
problems because some of the cells I need to get are merged and plus I don't
know what I'm doing anyway. I was able to get the sheet name back where I
needed it, but am unsure how to proceed with the rest without actually
selecting the master sheet and making that the active sheet. This is the
layout I've been given; cells C8, C10, C11, and C12 are merged. I need any
data after the : such as "Accounts Payable".
A8 C8
Application: Accounts Payable
A9 C9 D9
E9
Business Process: Purchase to Pay Business Sub-Process: All
F9 G9
Business Activity: Verify Batch
A10 C10
Lawson Sub-System: Accounts Payable
A11 C11
Test Number: AP520.1
A12 C12
Test Objective: Create a job for the Batch Release AP520.1
This is the code I have so far; please be kind to those more unfortunate
than you!
For Each Wks In ActiveWorkbook.Worksheets
With Wks
myName = ActiveSheet.Name
Range("C8").Copy
Range("C9").Copy
Sheets("Sheet1").Select
Range("a2").Select
ActiveCell = myName
Range("B2").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End With
Next Wks

 
Reply With Quote
 
 
 
 
cottage6
Guest
Posts: n/a
 
      23rd Apr 2008
Never mind; I've figured out most of what I need. Thanks.

"cottage6" wrote:

> Hello and HELP!
> I need to copy some cells in various rows and also return the sheet name to
> a master sheet where all will be layed out in a row. I'm running into
> problems because some of the cells I need to get are merged and plus I don't
> know what I'm doing anyway. I was able to get the sheet name back where I
> needed it, but am unsure how to proceed with the rest without actually
> selecting the master sheet and making that the active sheet. This is the
> layout I've been given; cells C8, C10, C11, and C12 are merged. I need any
> data after the : such as "Accounts Payable".
> A8 C8
> Application: Accounts Payable
> A9 C9 D9
> E9
> Business Process: Purchase to Pay Business Sub-Process: All
> F9 G9
> Business Activity: Verify Batch
> A10 C10
> Lawson Sub-System: Accounts Payable
> A11 C11
> Test Number: AP520.1
> A12 C12
> Test Objective: Create a job for the Batch Release AP520.1
> This is the code I have so far; please be kind to those more unfortunate
> than you!
> For Each Wks In ActiveWorkbook.Worksheets
> With Wks
> myName = ActiveSheet.Name
> Range("C8").Copy
> Range("C9").Copy
> Sheets("Sheet1").Select
> Range("a2").Select
> ActiveCell = myName
> Range("B2").Select
> ActiveSheet.Paste
> Application.CutCopyMode = False
> End With
> Next Wks
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Sheet to new Sheet and clear cells on original sheets Boiler-Todd Microsoft Excel Misc 7 23rd Sep 2009 10:02 PM
RE: Copy sheet cells into differnt workbook/sheet, How? Shane Devenshire Microsoft Excel Misc 1 2nd Jun 2009 11:16 PM
copy data of two cells from Sheet 2 into one cell in Sheet 1 cahabbinga Microsoft Excel Worksheet Functions 6 30th Jan 2008 01:00 PM
How to copy a sheet and rename it with the value of two cells from the source sheet? Simon Lloyd Microsoft Excel Programming 0 12th May 2006 01:31 AM
Copy sheet and clear cells on new sheet at sametime. Brad Withrow Microsoft Excel Programming 2 10th Apr 2006 12:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 AM.