Ramadan2512
Board Regular
- Joined
- Sep 7, 2024
- Messages
- 68
- Office Version
- 2021
- Platform
- Windows
I'm working on excel worksheet with a large table that might contain English and other languages text only in column "E" and alignment for each row manually take alot of work
and I'm looking for macro to perform this task
I have created this simple rules to just align rows but I don't know how to add a rule says if the cell contains english string otherwise make alignment right to left
can you please add such rule to my code or suggest a better one
Thanks in advance
and I'm looking for macro to perform this task
I have created this simple rules to just align rows but I don't know how to add a rule says if the cell contains english string otherwise make alignment right to left
can you please add such rule to my code or suggest a better one
Thanks in advance
VBA Code:
[
Sub Align()
Range("E:E").HorizontalAlignment = xlLeft
Range("E:E").VerticalAlignment = xlCenter
End Sub]