Copy and paste to Macro

I

Intruder9

If I had the following code in a macro

Range("B1").Select
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.SmallScroll ToRight:=6
Range("K1").Select
ActiveSheet.Paste

Is there a way to copy a cell that contained for example
A10= Application.CutCopyMode= True

and paste it over the line of code that states

Application.CutCopyMode = False

What I would like to be able to do is be able to change a line of code by
what is in a cell. This is the example I used to illistrate but not the
actual code being replaced.
Thanks
 
J

J.E. McGimpsey

VBA, and any other compiled language, will not let you do this.
However, you could do something like:

Application.CutCopyMode = Range("A10").Value

where you put TRUE or FALSE into A10.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top