B
bas
Looking for help to - Find text, replace with carriage return in cell.
Previous posts most helpful in converting badly formatted Word table to
formatted Excel worksheet. The goal is to copy bulleted cells in Word
to become bulleted cells in Excel. I replace ^t^t and ^p with "zz" in
Word doc. Then copy to Excel. That prevents bulleted lists becoming
separate cells in Excel. Now I want to find "zz" and replace with
"Alt-Return" for a carriage return within the cell. Obviously looking
for simple solution for newbie.
CRITICAL NEED: I'm looking for a macro to Global replace all "zz" with
<Alt-return> {next line} and " " within the cell
I do have a limited range A1-J1100 that I need to search.
Also the final end users won't be using macros, and would like to not
get error msg re MACROS - is there a way to bypass the error msg,
disabling macros?
EVEN BETTER: Each "copy and paste" will go into a separate range, not
a specific # of rows, but will always be same column and preceding row
has special format. Long-term I would like "onaction" buttons - find
formatted cell, down 1 = active cell, prompt user to select to "paste &
replace" or go to next target cell. But for now, I could use 2 macros,
if macro can find next target cell, user can just re-run appropriate
macro, either find next target or PASTE & FORMAT.
I have a few pieces from previous posts, but can't bring it together.
Sub PASTE & FORMAT
Application.ScreenUpdating = False
Range("C4:C1080").
Range(Selection, Selection.End(xlDown)).Select
FIND NEXT Font =
.Name = "Times New Roman"
.FontStyle = "Bold"
.Size = 10
Activecell.offset(1,0).select
<need help here to find "zz", replace with paste, add Alt-Return>
Sub FIND NEXT TARGET
On (F8 or press user button) "run paste & replace routine as above" -
or
on (double click or user button) "find next target"
THIS IS A GREAT GROUP, MANY HELPFUL SUGGESTIONS
Previous posts most helpful in converting badly formatted Word table to
formatted Excel worksheet. The goal is to copy bulleted cells in Word
to become bulleted cells in Excel. I replace ^t^t and ^p with "zz" in
Word doc. Then copy to Excel. That prevents bulleted lists becoming
separate cells in Excel. Now I want to find "zz" and replace with
"Alt-Return" for a carriage return within the cell. Obviously looking
for simple solution for newbie.
CRITICAL NEED: I'm looking for a macro to Global replace all "zz" with
<Alt-return> {next line} and " " within the cell
I do have a limited range A1-J1100 that I need to search.
Also the final end users won't be using macros, and would like to not
get error msg re MACROS - is there a way to bypass the error msg,
disabling macros?
EVEN BETTER: Each "copy and paste" will go into a separate range, not
a specific # of rows, but will always be same column and preceding row
has special format. Long-term I would like "onaction" buttons - find
formatted cell, down 1 = active cell, prompt user to select to "paste &
replace" or go to next target cell. But for now, I could use 2 macros,
if macro can find next target cell, user can just re-run appropriate
macro, either find next target or PASTE & FORMAT.
I have a few pieces from previous posts, but can't bring it together.
Sub PASTE & FORMAT
Application.ScreenUpdating = False
Range("C4:C1080").
Range(Selection, Selection.End(xlDown)).Select
FIND NEXT Font =
.Name = "Times New Roman"
.FontStyle = "Bold"
.Size = 10
Activecell.offset(1,0).select
<need help here to find "zz", replace with paste, add Alt-Return>
Sub FIND NEXT TARGET
On (F8 or press user button) "run paste & replace routine as above" -
or
on (double click or user button) "find next target"
THIS IS A GREAT GROUP, MANY HELPFUL SUGGESTIONS