View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
j j is offline
external usenet poster
 
Posts: 128
Default automaticaly moving information

HI Rick

I copy and pasted the macro but when I ran it I got a syntex error.

Do my my ranges have to be noted on in the macro?

My ranges a

I2 thru M2 inserted unter D3
N2 thru R2 inserted under D4
S2 thru W2 inserted under D5

And so on ....

I will be putting a math formula at the bottom of the D column when all of
the info has be moved into place.

I hope this makes more sense?

If so, would you tell me how to modify the macro?

Thanks, J.
"Rick Rothstein (MVP - VB)" wrote:

I am going to try the macro that you gave me, but it's been a very long
time
since I programmed code, so if you can give me any pointers that would be
appreciated.


Right click the worksheet tab that you want this functionality on, select
View Code from the menu that pops up and Copy/Paste my macro into the window
that opened up when you did that. Next, back on the worksheet, after your
CSV file is imported into cell I2 through whatever column it end at, press
Alt+F8, select MoveRow2Data from the list and click Run. That should be it
(assuming I didn't screw up the code in my macro or that I didn't
misinterpret your question).

Rick