Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this code to insert a new sheet with the content of the selected
cell.Wat I want now is link the selected cell to their sheet. Exemple: If the content is "test" I want to link this cell to the new sheet "test". Any Help?? Thank you. Sub InsertSheet() Sheets("Folha1").Select Range("A2").Select Selection.End(xlDown).Select Selection.Copy Sheets("Folha2").Select Range("G2").Select ActiveSheet.Paste NewSheetName = Selection.Value ActiveWorkbook.Sheets("Folha2").Copy After:=Worksheets(Worksheets.Count) ActiveSheet.Name = NewSheetName Range("G2:L2").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection.Font .Name = "Calibri" .Size = 16 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ThemeColor = xlThemeColorLight1 .TintAndShade = 0 .ThemeFont = xlThemeFontMinor End With With Selection.Font .Color = -16727809 .TintAndShade = 0 End With Selection.Font.Bold = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't make hyperlink function work for hyperlink to website | Excel Worksheet Functions | |||
Moving rows with Hyperlink doesn't move hyperlink address | Excel Discussion (Misc queries) | |||
Intra-workbook hyperlink: macro/function to return to hyperlink ce | Excel Discussion (Misc queries) | |||
Macro to Copy Hyperlink to another file as a HYPERLINK, not text... | Excel Programming | |||
reading html when hyperlink address not hyperlink text diplayed | Excel Programming |