Hello,
Maybe changing this line:
toVB:Sheets("Sheet1 (2)").Name = "Grapefruit"
HTHVB:Sheets("Sheet1 (2)").Name = Range("A1").Text
JL
Hi
i am trying to create a macro that renames a newly created sheet with whatever i paste into A1
Grapefruit is what is pasted into cell A1 but as you can see the sheet is renamed grapefruit regardless of what is actually copied.VB:Sub Example() ' ' Example Macro ' Macro recorded 14/01/2008 by KCHAN ' ' Sheets("Sheet1").Select Sheets("Sheet1").Copy After:=Sheets(4) Sheets("Data Conversion").Select Range("A2").Select Selection.Copy Sheets("Sheet1 (2)").Select Range("A1").Select ActiveSheet.Paste Sheets("Sheet1 (2)").Select Sheets("Sheet1 (2)").Name = "Grapefruit" Range("J29").Select End Sub
Any help is much appreciated
Hello,
Maybe changing this line:
toVB:Sheets("Sheet1 (2)").Name = "Grapefruit"
HTHVB:Sheets("Sheet1 (2)").Name = Range("A1").Text
JL
VB:Sub Example() Sheets("Sheet1").Copy After:=Sheets(4) With Sheets(5) Sheets("Data Conversion").Range("A2").Copy .Range("A1") .Name = .Range("A1").Value End With End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks