|
-
Jul 19th, 2012, 08:49 AM
#1
Thread Starter
New Member
Keeping lines together
Hi, I have a small issue in Word VBA. I have copied texts from PDF into Word and some lines have broken and gone on next lines. I want to keep the lines/paragraphs together with a single white space. For example, the following :-
The quick brown fox jumped over the lazy dog.
Happiness dies when it is not shared.
should appear as
The quick brown fox jumped over the lazy dog. Happiness dies when it is not shared.
As I have not fully understood the object model of VBA Word (although good in Excel ), so I am unable to do it.
Thanks in advance for giving your valuable time.
-
Jul 19th, 2012, 10:18 AM
#2
Re: Keeping lines together
Welcome to the forums Shrishesh 
How are you copying the data into word document?
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
-
Jul 19th, 2012, 12:10 PM
#3
Thread Starter
New Member
Re: Keeping lines together
 Originally Posted by koolsid
Welcome to the forums Shrishesh
How are you copying the data into word document?
I have simply selected the pdf file and pasted it into word file and saved it.
-
Jul 19th, 2012, 12:14 PM
#4
Re: Keeping lines together
I see. In that case you will have to upload your file so that I can have a look. We might have to write a macro which looks for a special charater and delete it so that the lines are concatenated.
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
-
Jul 19th, 2012, 04:48 PM
#5
Thread Starter
New Member
Re: Keeping lines together
 Originally Posted by koolsid
I see. In that case you will have to upload your file so that I can have a look. We might have to write a macro which looks for a special charater and delete it so that the lines are concatenated.
A portion of that i paste here
Event
1970
C odd defines relational database model
1974
I BM's System/R project begins
1974
F irst article describing the SEQUEL language
1978
System/R customer tests
1979
Oracle introduces first commercial RDBMS
1981
R elational Technology introduces Ingres
1981
I BM announces SQL/DS
1982
A NSI forms SQL standards committee
1983
I BM announces DB2
1986
A NSI SQL1 standard ratified
1986
Thanks
-
Jul 19th, 2012, 05:00 PM
#6
Re: Keeping lines together
Shrishesh
This will not help as when you copy data into word from pdf, I believe some special characters are also copied which get lost when you are pasting it here in this forum and hence I wanted to see the word file
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
|