![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a program I'm running in Access 2007 that automates Excel. It needs to create a large number of columns in one worksheet (somewhere in the neighborhood of 670). The problem is that it keeps cutting me off after 256 columns. I did some research and found that versions prior to Excel 2007 max out at 256. So I changed this line of code: Set objXLApp = CreateObject("Excel.Application") to this: Set objXLApp = CreateObject("Excel.Application.12") But I'm still encountering the same problem. I'm running Excel 2007 and I'm specifiying E2K7 in my initialization statement. Why is it still creating an E2K3 document?? Thanks for your help. |
#3
| |||
| |||
|
|
I have a program I'm running in Access 2007 that automates Excel. It needs to create a large number of columns in one worksheet (somewhere in the neighborhood of 670). The problem is that it keeps cutting me off after 256 columns. I did some research and found that versions prior to Excel 2007 max out at 256. So I changed this line of code: Set objXLApp = CreateObject("Excel.Application") to this: Set objXLApp = CreateObject("Excel.Application.12") But I'm still encountering the same problem. I'm running Excel 2007 and I'm specifiying E2K7 in my initialization statement. Why is it still creating an E2K3 document?? You have not shown us the statement that raises the error. This has led |
#4
| |||
| |||
|
|
On Dec 23, 2:52*pm, septimus <ovengra... (AT) yahoo (DOT) com> wrote: I have a program I'm running in Access 2007 that automates Excel. It needs to create a large number of columns in one worksheet (somewhere in the neighborhood of 670). The problem is that it keeps cutting me off after 256 columns. I did some research and found that versions prior to Excel 2007 max out at 256. So I changed this line of code: Set objXLApp = CreateObject("Excel.Application") to this: Set objXLApp = CreateObject("Excel.Application.12") But I'm still encountering the same problem. I'm running Excel 2007 and I'm specifiying E2K7 in my initialization statement. Why is it still creating an E2K3 document?? Thanks for your help. I entered, using Excel 2010, the number 1 in ColA1 and A1+1 in Col2 and copied that to the last column, *I ended up with 16,384 columns. However, Access can only have 256 columns (fields). *You can find that information by entering "Specifications" in the Access Help Search bar. *That's the count you bombed out on. *So I wonder if it is your logic that is at fault or what you really are attempting to do that is the issue. I read mostly and write occasionally, to specific cells using VBA on a daily basis at work. I know you can create a 670 column spreadsheet although a file that size with 50K rows would be a "get and drink a cup of coffee" while waiting for it to load. Go to this sitehttp://access.mvps.org/access/_vti_bin/shtml.dll/search.htm and search for "Excel" *Maybe something there will help you. |
![]() |
| Thread Tools | |
| Display Modes | |
| |