Help quick VBA

clare_voiant

Board Regular
Joined
Mar 20, 2002
Messages
76
hello again,

i have no VBA so pls be patient....

can anyone tell me why this doesnt work, and what i need to make it work. I want to paste the selected name onto the worksheet tab, i replaced the Name = "blah" with selection.paste (see below) this doesnt work, any ideas?


Range("A3").Select
Selection.Copy
ActiveWindow.SmallScroll Down:=28
Sheets("Template (2)").Select
Sheets("Template (2)").Name = Selection.Paste
Sheets("Totals").Select
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

pmdown

Board Regular
Joined
May 6, 2002
Messages
71
I don't now. Is it so trivial ?

Sheets("Template (2)").Name = Range("A3")

Hmmm...
 

Forum statistics

Threads
1,143,639
Messages
5,719,983
Members
422,256
Latest member
downeybm

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
Top