Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Copy/Paste Problem

JB,

you can't record a macro to do this. What you can do is
edit the recorded version to work the way you want.
In the transcript of your recorded macro you will see the
line
Cells.Find(What:= ...

after that equals, you will see the original string you
searched on when recording the macro. If we assume that
string was "Bill" and, instead, you always want to find
the value in cell A1, then replace
What:="Bill"

with

What:=Range("A1").value

You can now simply amend the contents of cell A1 and run
your macro with gay abandon.

Pete
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
problem with copy and paste Tomek Excel Discussion (Misc queries) 2 February 7th 09 01:49 PM
copy and paste problem Tomek Excel Discussion (Misc queries) 2 February 7th 09 11:41 AM
Copy and Paste Problem Skc Excel Discussion (Misc queries) 1 March 8th 06 08:21 PM
copy paste problem? Neil22 Excel Discussion (Misc queries) 5 January 10th 06 06:32 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 06:16 PM


All times are GMT +1. The time now is 11:23 PM.

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"