Hi,
As part of my work, each week I export a spreadsheet from our hotel system which contains info I need. However a lot of this info is meaningless and I find myself only copying and pasting the parts I need. I am new to the whole macro thing and feel I am confident in automating the copy and pasing process.
However one of the things I currently have to do which is very tedious is the following.
There is a column with hundreds of lines of data which all look about the same:
<TABLE style="WIDTH: 419pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=559 x:str><COLGROUP><COL style="WIDTH: 419pt; mso-width-source: userset; mso-width-alt: 20443" width=559><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; WIDTH: 419pt; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17 width=559><TABLE style="WIDTH: 419pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=559 x:str><COLGROUP><COL style="WIDTH: 419pt; mso-width-source: userset; mso-width-alt: 20443" width=559><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; WIDTH: 419pt; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17 width=559>Room# 9999 : CHECK# 0100064 [494]</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17>Room# 9999 : CHECK# 0100071 [494]</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17>Room# 9999 : CHECK# 0100055 [648]</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17>Room# 9999 : CHECK# 0100076 [494]
I am only interested in the last three digits in the square parentheses and have to systematically go down the page changing each cell to be just the three digit number. So at the end the column above would look like this:
494
494
648
494
Is there any way that I can automate this process with a macro?
Thanks!
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
As part of my work, each week I export a spreadsheet from our hotel system which contains info I need. However a lot of this info is meaningless and I find myself only copying and pasting the parts I need. I am new to the whole macro thing and feel I am confident in automating the copy and pasing process.
However one of the things I currently have to do which is very tedious is the following.
There is a column with hundreds of lines of data which all look about the same:
<TABLE style="WIDTH: 419pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=559 x:str><COLGROUP><COL style="WIDTH: 419pt; mso-width-source: userset; mso-width-alt: 20443" width=559><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; WIDTH: 419pt; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17 width=559><TABLE style="WIDTH: 419pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=559 x:str><COLGROUP><COL style="WIDTH: 419pt; mso-width-source: userset; mso-width-alt: 20443" width=559><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; WIDTH: 419pt; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17 width=559>Room# 9999 : CHECK# 0100064 [494]</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17>Room# 9999 : CHECK# 0100071 [494]</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17>Room# 9999 : CHECK# 0100055 [648]</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" height=17>Room# 9999 : CHECK# 0100076 [494]
I am only interested in the last three digits in the square parentheses and have to systematically go down the page changing each cell to be just the three digit number. So at the end the column above would look like this:
494
494
648
494
Is there any way that I can automate this process with a macro?
Thanks!
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>