-
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
- Kaspersky, BitDefender, Avast és egyéb vírusírtó licencek a legolcsóbban, egyenesen a gyártóktól!
- Számlás!Steam,EA,Epic és egyébb játékok Pc-re vagy XBox!
- Windows, Office licencek kedvező áron, egyenesen a Microsoft-tól - Automata kézbesítés utalással is!
- Vírusirtó, Antivirus, VPN kulcsok GARANCIÁVAL!
- Fallout 4 Pip-Boy Edition eladó
- Inno3D RTX 5070 // Felbontott, új // SZÁMLA // GARANCIA //
- ÁRGARANCIA!Épített KomPhone i5 14600KF 32/64GB RAM RTX 5070 12GB GAMER PC termékbeszámítással
- Lenovo T14s G2 Core i5-1145G7 Touch 16Gb Ram Intel Iris Boltból számlával Garanciával
- Új és régi konzolok Okosítása és Szoftveres szintű javítása - PS4 "okosító" lemez kapható!
- GYÖNYÖRŰ iPhone 14 Plus 256GB Midnight -1 ÉV GARANCIA - Kártyafüggetlen, MS4526
Á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. .....