Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking macro to cell value 1

Status
Not open for further replies.

Tuff

Instructor
Mar 17, 2003
19
AU
Hi guys,

I am sure it is possible to do this but I don't know how.
I want to link a cell value to the macro.
EG - Something like this.

ActiveSheet.Select"Book2"
Range("M13").Select
ActiveCell.FormulaR1C1 = "Sheet"book1""C6"

How can I go about this??
 
Would it not be something like

Sheets("Sheet1").select
x = Range("C6").Value
Sheets("Sheet2").Select
Range("M13").Value = x

This will select sheet 1 and take the value from C6 into x then activate sheet 2 and put the value x in cell M13

Have I understood your question?

dyarwood
 
Yep that did the trick.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top