Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Multiple worksheet Copy Paste Macro

I have read all of the posts related to Copy & Paste macros and have not
found anything that answers my question.

I am trying to copy and paste different values within the same macro.

When I record the macro and then run it, the macro does not recognize the
value residing in the current clipboard, it only recognizes the previously
copied value. and I end up pasting the same value each time i run the macro.


I have recorded using relative and non-relative values and get the same
result with either one.

What I am physically doing (and have recorded) is as follows:

My workbook is made up of 3 worksheets: LISTING, DETAIL and SORT

Within the LISTING worksheet, I first locate the cell from which I will copy
the value by using F5 and entering a cell reference, I then copy that value
(Ctrl+C).

Then I move to the DETAIL worksheet (Ctrl+PgDn) to locate the value (that I
just copied from the LISTING worksheet) within the DETAIL worksheet
Open find dialog box (Ctrl+F) then paste the clipboard value into the find
dialog box (Ctrl+V) then Enter to find the value.

After the value is located, I close the search dialog box, highlight several
adjacent cells and copy them.

I then move to the SORT worksheet and past the values copied from the DETAIL
worksheet to the SORT worksheet.

I repeat this process several hundred times to build the SORT worksheet.

I inherited these massive workbooks and this process. I know the workbooks
could have been designed much better, but this is what I have to work with
and would appreciate any advice on how to record a macro to accomplish the
above steps.

I'm hoping this macro can be built by recording the keystrokes because I am
VBA illiterate.

Thanks, Dan

MS Office Professional Edition 2003 SP3
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Multiple worksheet Copy Paste Macro

Post your code...
--
HTH...

Jim Thomlinson


"danno-c" wrote:

I have read all of the posts related to Copy & Paste macros and have not
found anything that answers my question.

I am trying to copy and paste different values within the same macro.

When I record the macro and then run it, the macro does not recognize the
value residing in the current clipboard, it only recognizes the previously
copied value. and I end up pasting the same value each time i run the macro.


I have recorded using relative and non-relative values and get the same
result with either one.

What I am physically doing (and have recorded) is as follows:

My workbook is made up of 3 worksheets: LISTING, DETAIL and SORT

Within the LISTING worksheet, I first locate the cell from which I will copy
the value by using F5 and entering a cell reference, I then copy that value
(Ctrl+C).

Then I move to the DETAIL worksheet (Ctrl+PgDn) to locate the value (that I
just copied from the LISTING worksheet) within the DETAIL worksheet
Open find dialog box (Ctrl+F) then paste the clipboard value into the find
dialog box (Ctrl+V) then Enter to find the value.

After the value is located, I close the search dialog box, highlight several
adjacent cells and copy them.

I then move to the SORT worksheet and past the values copied from the DETAIL
worksheet to the SORT worksheet.

I repeat this process several hundred times to build the SORT worksheet.

I inherited these massive workbooks and this process. I know the workbooks
could have been designed much better, but this is what I have to work with
and would appreciate any advice on how to record a macro to accomplish the
above steps.

I'm hoping this macro can be built by recording the keystrokes because I am
VBA illiterate.

Thanks, Dan

MS Office Professional Edition 2003 SP3

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 range from one worksheet and paste to multiple worksheets mooring Excel Discussion (Misc queries) 10 January 19th 08 04:19 PM
On a DDE Linked worksheet : Copy and Paste Value to a to a file via a macro ? Martin Links and Linking in Excel 0 November 20th 06 11:19 AM
macro copy/paste data from multiple cells to multiple cells Diana Excel Discussion (Misc queries) 0 July 10th 06 09:24 PM
Macro copy and paste = blank worksheet efface Excel Discussion (Misc queries) 1 April 27th 06 09:52 PM
Copy & Paste macro sparx Excel Worksheet Functions 3 September 13th 05 05:08 AM


All times are GMT +1. The time now is 04:16 AM.

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"