Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Copy and Paste Issue

I amsomewhat of a novice with Excel.
I have created a form and a macro to print then clear the form. What I am
trying to do is to take certain cells in this form and copy them into a
report.How do I get the data which will change each time the form is filled
to paste into the report going down the column.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel Copy and Paste Issue

Try this if I understand you correct
http://www.rondebruin.nl/copy1.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Joseph Cura" wrote in message . ..
I amsomewhat of a novice with Excel.
I have created a form and a macro to print then clear the form. What I am
trying to do is to take certain cells in this form and copy them into a
report.How do I get the data which will change each time the form is filled
to paste into the report going down the column.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Excel Copy and Paste Issue

Hu Joseph,

Try this:

Assuming the sheet with the form is named 'myForm' and you have a sheet
for reporting named 'myReport'

Sub PrintReportClear()
'
' Your print code comes here
'
If IsEmpty(Sheets("myReport").Range("A1")) Then
Sheets("myReport").Range("A1").Value = "Names"
Sheets("myReport").Range("A2").Value = _
Sheets("myForm").Range("Name").Value
Else
Sheets("myReport").Range("A1").End(xlDown).Offset( 1, 0).Value =
_
Sheets("myForm").Range("Name").Value
End If
If IsEmpty(Sheets("myReport").Range("B1")) Then
Sheets("myReport").Range("B1").Value = "ZipCodes"
Sheets("myReport").Range("B2").Value = _
Sheets("myForm").Range("Zip").Value
Else
Sheets("myReport").Range("B1").End(xlDown).Offset( 1, 0).Value =
_
Sheets("myForm").Range("Zip").Value
End If
'
' Your clear code comes here
'
End Sub

HTH,

Executor

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Copy and Paste Issue

Thanks,
I will give this a try.
Aljoe
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
VBA Copy Paste Issue jlclyde Excel Discussion (Misc queries) 0 January 21st 10 05:53 PM
Copy and Paste Issue 2007 SP1 Tim Excel Discussion (Misc queries) 2 March 21st 09 01:45 PM
Copy & Paste Issue carrera0000 Excel Discussion (Misc queries) 3 August 17th 07 02:24 AM
Copy Paste issue amwebber Excel Worksheet Functions 3 October 31st 06 02:08 AM
Issue with copy & paste? Etrnal168 Excel Discussion (Misc queries) 2 July 12th 05 03:35 AM


All times are GMT +1. The time now is 03:29 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"