Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On May 11, 7:20*am, "macropod" wrote:
Hi Hong, You could simply insert 'R' into all cells in row 2. Alternatively, simply delete: If Left(Trim(UCase(WkSht.Cells(2, CurrentCol))), 1) = "R" Then and Else * strOutput = strOutput & Left(WkSht.Cells(CurrentRow, CurrentCol) & Space(255), _ * WkSht.Cells(1, CurrentCol)) End If Having done that and, assuming you don't want the 'R' row, you might want to change: For CurrentRow = 3 To MaxRow to For CurrentRow = 2 To MaxRow -- Cheers macropod [Microsoft MVP - Word] "HONG" wrote in ... On May 10, 9:17 pm, "macropod" wrote: Dear macropod: Your code works like a chime. May I ask one more help:canyou make all the fields right-alignment? Thank you again. H.Z. Thank you, macropod, Jacob, and Keiji for your generous help. Macropod, your code saves hours of my head-scratching. H.Z. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chip Pearson's DistinctValues function | Excel Programming | |||
Chip Pearson's NewWorkDays formula | Excel Discussion (Misc queries) | |||
DeleteDuplicatesViaFilter From Chip Pearson's Website | Excel Programming | |||
How to Use Chip Pearson's Text Import Code | Excel Programming | |||
Chip Pearson's Forum Etiquette | New Users to Excel |