Hi there
I apologise for being such a newb but I have what I think is a simple question, but I just can't seem to find the answer.
I have a spreadsheet that users enter in part numbers and then buyer ID's associated to the part. I have a formula which takes those entries and creates the following single cell (D2).
<TABLE style="WIDTH: 428pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=571 border=0 x:str><COLGROUP><COL style="WIDTH: 428pt; mso-width-source: userset; mso-width-alt: 20882" width=571><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl26 style="BORDER-RIGHT: #e0dfe3; BORDER-TOP: #e0dfe3; BORDER-LEFT: #e0dfe3; WIDTH: 428pt; BORDER-BOTTOM: #e0dfe3; HEIGHT: 12.75pt; BACKGROUND-COLOR: lime" width=571 height=17>PPRCHGB1234567 BYID=0666 =</TD></TR></TBODY></TABLE>
Essentially I need to copy that cell but change the 'PPRCHGB' to 'PRTCHGB' and then copy it in the row underneath. The end result should look like this:
PPRCHGB1234567 BYID=0666 =<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
PRTCHGB1234567 BYID=0666 =
Here is my rudimentary solution.
I have created a cell next to the one that creates the first result but changes the 'PPRCHGB' to 'PRTCHGB' (E2). Then I have created a macro that takes both cells and transposes them onto another sheet.
Sub test2()
Range("D2:E2").Select
Selection.Copy
Sheets("Sheet1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
End Sub
This seems to work ok, but I can't work out how to get it to repeat the action for each row that contains data ie D3:E3, D4:E4, D5:E5 etc etc.
Once I can get that working, the next step would be that a text file is created from the resulted spreadsheet, which can be uploaded to make multiple changes to our system.
Am I going about this the right way, is there a less complicated solution?
Thanks in advance
Morky
I apologise for being such a newb but I have what I think is a simple question, but I just can't seem to find the answer.
I have a spreadsheet that users enter in part numbers and then buyer ID's associated to the part. I have a formula which takes those entries and creates the following single cell (D2).
<TABLE style="WIDTH: 428pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=571 border=0 x:str><COLGROUP><COL style="WIDTH: 428pt; mso-width-source: userset; mso-width-alt: 20882" width=571><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl26 style="BORDER-RIGHT: #e0dfe3; BORDER-TOP: #e0dfe3; BORDER-LEFT: #e0dfe3; WIDTH: 428pt; BORDER-BOTTOM: #e0dfe3; HEIGHT: 12.75pt; BACKGROUND-COLOR: lime" width=571 height=17>PPRCHGB1234567 BYID=0666 =</TD></TR></TBODY></TABLE>
Essentially I need to copy that cell but change the 'PPRCHGB' to 'PRTCHGB' and then copy it in the row underneath. The end result should look like this:
PPRCHGB1234567 BYID=0666 =<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
PRTCHGB1234567 BYID=0666 =
Here is my rudimentary solution.
I have created a cell next to the one that creates the first result but changes the 'PPRCHGB' to 'PRTCHGB' (E2). Then I have created a macro that takes both cells and transposes them onto another sheet.
Sub test2()
Range("D2:E2").Select
Selection.Copy
Sheets("Sheet1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
End Sub
This seems to work ok, but I can't work out how to get it to repeat the action for each row that contains data ie D3:E3, D4:E4, D5:E5 etc etc.
Once I can get that working, the next step would be that a text file is created from the resulted spreadsheet, which can be uploaded to make multiple changes to our system.
Am I going about this the right way, is there a less complicated solution?
Thanks in advance
Morky
Last edited: