Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default copy data from macros

I am using excel to enter conditions that would then be put into a series of
equations to leave me with a new set of data. Ideally I would like to be able
to use some type of macro that will allow me to take both the data I enter
and the data that results and put it on a new sheet. Is there anyone that
could help me to do this? I am currently using 2000, but have access to do it
in 2003 if it is easier or if someone is more familiar with that instead.

Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default copy data from macros



Let's assume that your input data is in cells G1:G10, and your final output (the new set of data) is
in cells Z1:Z10, all on Sheet1. This code will copy those cells and paste them as values onto a new
sheet, keeping the formatting as well.

Dim myR As Range
Set myR = Worksheets("Sheet1").Range("G1:G10,Z1:Z10")
Sheets.Add Type:="Worksheet"
myR.Copy
Range("A1").PasteSpecial xlPasteValues
Range("A1").PasteSpecial xlPasteFormats

HTH,
Bernie
MS Excel MVP


"Bridgeton" wrote in message
...
I am using excel to enter conditions that would then be put into a series of
equations to leave me with a new set of data. Ideally I would like to be able
to use some type of macro that will allow me to take both the data I enter
and the data that results and put it on a new sheet. Is there anyone that
could help me to do this? I am currently using 2000, but have access to do it
in 2003 if it is easier or if someone is more familiar with that instead.

Thank you.



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
copy macros? John Setting up and Configuration of Excel 5 October 27th 06 11:07 PM
Copy using Macros JorgeAE Setting up and Configuration of Excel 1 March 2nd 06 11:52 AM
Copy data to another column Macros dominoguru2 Excel Worksheet Functions 2 November 2nd 05 08:01 PM
Copy XL macros from one PC to another JDonahou Excel Discussion (Misc queries) 2 April 23rd 05 12:47 AM
Copy macros to new computer brodine Excel Worksheet Functions 2 November 9th 04 04:07 PM


All times are GMT +1. The time now is 07:18 PM.

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

About Us

"It's about Microsoft Excel"