Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-21-2019, 08:02 AM
ruggb ruggb is offline macro construction Windows 10 macro construction Office 2016
Novice
macro construction
 
Join Date: Aug 2010
Posts: 28
ruggb is on a distinguished road
Default macro construction

Disclaimer: I may have used a macro 10 yrs ago and I need another now.



I have a csv file I am opening in excel. It is actually now in an xlsm file.
it has records with fields separated by , and CRs.
I need to remove the CR field separations and leave the CR record separations.

I can't do a replace in Word because it will also replace all the record separators. There is nothing unique that I can key on.

I think a macro will work, but how do I get it to repeat to the end of the records.

This is what I recorded for the first Record.

Range("A2").Select <<< start
Selection.Cut
Range("B2").Select
Selection.Cut
Range("A3").Select
Selection.Cut
Rows("2:3").Select
Selection.Delete Shift:=xlUp
Range("A3").Select <<< start again

now it needs to repeat to the end of the records.

thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Construction Schedule Rain Days kpayne Project 0 04-19-2019 08:56 AM
Call up times in Construction program Crawf Project 1 03-06-2019 01:29 PM
MS Project 2003 - Commercial Construction template Rory Todd Project 1 05-30-2016 04:27 PM
New heights of construction! Ulodesk Chitchat 0 04-27-2015 09:59 AM
macro construction Construction Project Presentation manich1 PowerPoint 3 04-17-2011 08:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft