|
-
Nov 25th, 2009, 07:28 PM
#1
Thread Starter
Addicted Member
[RESOLVED] cell replace
hi!
xxx = cell(3,text) = yyyy*
how do i replace instead of *
a or b or c or d or e or 1 or 2 or 3 or 4 or 5 or 6 or 8 or 9
-
Nov 26th, 2009, 01:11 AM
#2
Fanatic Member
Re: cell replace
Perhaps you can give a little more detail. Not sure exactly what you are asking for.
Please RATE posts, click the RATE button to the left under the Users Name.
Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.
"As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood
-
Nov 26th, 2009, 07:43 AM
#3
Thread Starter
Addicted Member
Re: cell replace
if the cell has a word ending with * instead of that replace a or b or c or d
-
Nov 26th, 2009, 10:14 AM
#4
Re: cell replace
Code:
Worksheets("sheet1").Cells(1, 1).Value = Replace(Worksheets("sheet1").Cells(1, 1).Value, "*", "a")
-
Nov 26th, 2009, 10:55 AM
#5
Re: cell replace
Code:
Sub Sample()
Dim valCell As String
valCell = Worksheets("sheet1").Cells(1, 1).Value
'~~> Check for last Character
If Right(valCell, 1) = "*" Then
Worksheets("sheet1").Cells(1, 1).Value = Left(valCell, Len(valCell) - 1) & "a"
End If
End Sub
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Nov 26th, 2009, 12:11 PM
#6
Thread Starter
Addicted Member
Re: cell replace
KOOL
it works great. but i need to replace a to e and 1 to 9
if a do someting
and b so on tilll e and the same thing 1 to 9
-
Nov 26th, 2009, 12:41 PM
#7
Re: cell replace
didn't get your query... can you give an example?
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|