-
Fototrend
A Microsoft Excel topic célja segítséget kérni és nyújtani Excellel kapcsolatos problémákra.
Kérdés felvetése előtt olvasd el, ha még nem tetted.
Új hozzászólás Aktív témák
-
Acustic
csendes tag
válasz
Fferi50
#35715
üzenetére
Sub névminta()
'
' névminta Makró
' ctrl+n a neveket előbb besárgítja, majd kereső funkcióra áll, megtalálja az első nevet.
'
' Billentyűparancs: Ctrl+n
'
Range("H1").Select
Selection.Copy
Range("I1").Select
Application.ReplaceFormat.Clear
Application.ReplaceFormat.NumberFormat = "General"
With Application.ReplaceFormat
.HorizontalAlignment = xlRight
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
End With
With Application.ReplaceFormat.Font
.Name = "Arial"
.FontStyle = "Normál"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.ThemeColor = 2
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
Application.ReplaceFormat.Borders(xlLeft).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlRight).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlBottom).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlDiagonalDown).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlDiagonalUp).LineStyle = xlNone
With Application.ReplaceFormat.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Application.ReplaceFormat.Locked = True
Application.ReplaceFormat.FormulaHidden = False
Columns("A:A").Select
Selection.Replace What:="John", Replacement:="John", LookAt:=xlWhole, _
SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
Application.ReplaceFormat.NumberFormat = "General"
Range("I2").Select
Application.ReplaceFormat.Clear
Application.ReplaceFormat.NumberFormat = "General"
With Application.ReplaceFormat
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
End With
With Application.ReplaceFormat.Font
.Name = "Arial"
.FontStyle = "Normál"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.Color = -16776961
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
Application.ReplaceFormat.Borders(xlLeft).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlRight).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlBottom).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlDiagonalDown).LineStyle = xlNone
Application.ReplaceFormat.Borders(xlDiagonalUp).LineStyle = xlNone
With Application.ReplaceFormat.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Application.ReplaceFormat.Locked = True
Application.ReplaceFormat.FormulaHidden = False
Range("A1").Select
Cells.Find(What:="John", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase _
:=False, SearchFormat:=False).Activate
End SubA keresés Mindig a H1 ben lévo szóra indulna el, ami változik, hiszen a "h" oszlopban szereplo nevek érkezési sorrendben változnak. Hogy értheto legyen ....... Szinkront rendezek. Jon egy színész, és azt mondom, hogy van egy John nevu karaktere. Besárgítom neki az összes John-t, hogy jobban átláthato legyen számára. Amikor pedig felvettük azt a sort, akkor átváltozik pirosra a név. ebbbol tudom, hogy már fölvettuk azt a szereplot. De mivel egy nap 60 szor kell ezt megcsinálni, az már fáraszto.
Minden munkafolyamatra van már kész makro-m ....de ez már naggyon megakasztott
) köszönöm a segítségedet ......az is nagy dolog, ha legalább azt meg tudod mondani, hogy merre induljak el. MÁr az angol oldalakat is végignéztem, de valószínuleg nem látom át a lehetoségeket. .....
Új hozzászólás Aktív témák
- Windows, Office licencek kedvező áron, egyenesen a Microsoft-tól - Automata kézbesítés utalással is!
- Kaspersky, BitDefender, Avast és egyéb vírusírtó licencek a legolcsóbban, egyenesen a gyártóktól!
- Eladó jogtiszta, Windows 11/10, Office 2019/2021/2024, Fizikai és Digitális licencek, Számlával.
- Játékkulcsok olcsón: Steam, Uplay, GoG, EA, Xbox stb.
- The Elder Scrolls Online Imperial Collector s Edition
- iPhone 11 Pro 64GB 100% (3 hónap garancia)
- Apple iPhone 12 Pro 128GB Gold Szép állapot 100% akkumulátor
- Dell Precision 7550,15.6",FHD,i7-10850H,16GB DDR4,512GB SSD,Quadro T2000 4GB VGA,WIN11, 2 KAMERA
- 27% - ASUS ROG Strix XG27ACS Monitor! 2560x1440 / 1ms / 180Hz / G-Sync / FreeSync
- Hp USB-C/Thunderbolt 3 dokkolók: USB-C Universal, G2, G4, G5, Hp Elite/Zbook- Thunderbolt 4 G4
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Minden munkafolyamatra van már kész makro-m ....de ez már naggyon megakasztott
) köszönöm a segítségedet ......az is nagy dolog, ha legalább azt meg tudod mondani, hogy merre induljak el. MÁr az angol oldalakat is végignéztem, de valószínuleg nem látom át a lehetoségeket. .....