DavidSCowan
Board Regular
- Joined
- Jun 7, 2009
- Messages
- 78
Can someone help please.
I want to Set wkb as the workbook<TABLE style="WIDTH: 198pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=264><COLGROUP><COL style="WIDTH: 198pt; mso-width-source: userset; mso-width-alt: 8448" width=264><TBODY><TR style="HEIGHT: 12.75pt; mso-height-source: userset" height=17><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 198pt; HEIGHT: 12.75pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" height=17 width=264>C:\Users\David\Documents\EasyXL\easy-xlIndex.xls
</TD></TR></TBODY></TABLE>
I thought that:
Dim wkb as workbook
Set wkb =workbooks("<TABLE style="WIDTH: 198pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=264><COLGROUP><COL style="WIDTH: 198pt; mso-width-source: userset; mso-width-alt: 8448" width=264><TBODY><TR style="HEIGHT: 12.75pt; mso-height-source: userset" height=17><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 198pt; HEIGHT: 12.75pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" height=17 width=264>C:\Users\David\Documents\EasyXL\easy-xlIndex.xls")
would do the trick but it doesn't (and I have tried every variant I can think of)
</TD></TR></TBODY></TABLE>
What it produces is: "Run-time error '9'"; "Subscript out of range"
(I don't want to use ActiveWorkbook or ThisWorkBook)
Can someone help please.
I want to Set wkb as the workbook<TABLE style="WIDTH: 198pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=264><COLGROUP><COL style="WIDTH: 198pt; mso-width-source: userset; mso-width-alt: 8448" width=264><TBODY><TR style="HEIGHT: 12.75pt; mso-height-source: userset" height=17><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 198pt; HEIGHT: 12.75pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" height=17 width=264>C:\Users\David\Documents\EasyXL\easy-xlIndex.xls
</TD></TR></TBODY></TABLE>
I thought that:
Dim wkb as workbook
Set wkb =workbooks("<TABLE style="WIDTH: 198pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=264><COLGROUP><COL style="WIDTH: 198pt; mso-width-source: userset; mso-width-alt: 8448" width=264><TBODY><TR style="HEIGHT: 12.75pt; mso-height-source: userset" height=17><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 198pt; HEIGHT: 12.75pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" height=17 width=264>C:\Users\David\Documents\EasyXL\easy-xlIndex.xls")
would do the trick but it doesn't (and I have tried every variant I can think of)
</TD></TR></TBODY></TABLE>
What it produces is: "Run-time error '9'"; "Subscript out of range"
(I don't want to use ActiveWorkbook or ThisWorkBook)
Can someone help please.