Code for special copy and paste

a.sharaf

New Member
Joined
Feb 15, 2012
Messages
2
HI...
i have cell a3 as a reference to another cell lets say z4 is written in cell a3 i want a code to help me select z4 from cell a3 my code goes as follows:
Code:
Range("A3").Select
    Application.CutCopyMode = False
    Selection.Copy
    ' I WANT TO WRITE HERE A CODE TO LET THE COMPUTER SELECT CELL Z4 THROUGH CELL A3 LETS SAY { RANGE("A3").VALUE.SELECT } SO THE COMPUTER WILL SELECT CELL Z4 CAUSE ITS WRITTEN IN CELL A3    
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You may need to elaborate on your issue/goal.

Is there a reason you aren't using:

Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks

This would paste the value of Z4 into A3.
 
Upvote 0
thanks for the tip but imply what i want is as follows:
I want to select the cell referred to in cell a3. lets say z4 is typed in cell a3 so i want to automatically select cell z4 through cell a3
 
Upvote 0

Forum statistics

Threads
1,215,419
Messages
6,124,796
Members
449,189
Latest member
kristinh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top