If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Cell formula longer than 255 chars: error!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-08, 07:21
pepemosca pepemosca is offline
Registered User
 
Join Date: Apr 2008
Posts: 189
Question Cell formula longer than 255 chars: error!

Hello,
I have a cell in an Excel 2003 sheet, that has a simple "=SUM(" formula.
This formula is related to some linked files, so the formula is longer than 255 chars, like:

Code:
=SUM(//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!A1;//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!A1;//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!A1;//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!A1;//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!A1;//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!A1...)
And so on... It's so long that has more than 1000 chars on the formula definition.

The thing is when I try via VBA code to "show" or know the "LEN(" of this formula says:

(see attachment)

Any ideas how to solve this?
I mean, I need to "catch" that error... and "On Error GoTo XXXX" doesn't work.

Thanks!
Attached Thumbnails
Cell formula longer than 255 chars: error!-dibujo.jpg  
Reply With Quote
  #2 (permalink)  
Old 10-29-08, 06:57
pepemosca pepemosca is offline
Registered User
 
Join Date: Apr 2008
Posts: 189
Any ideas?
Reply With Quote
  #3 (permalink)  
Old 10-31-08, 13:51
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
Try copying the linked files to a short directory and use the linked files manager to update the links.
Reply With Quote
  #4 (permalink)  
Old 10-31-08, 14:08
pepemosca pepemosca is offline
Registered User
 
Join Date: Apr 2008
Posts: 189
Yeah, but not a solution:
I don't have the source files.

Also, I want to save the original file path.

Thanks, but still no solution to this issue!

Reply With Quote
  #5 (permalink)  
Old 10-31-08, 14:20
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Can you pull in individual pieces onto one worksheet, then setup the SUM formula on another worksheet, so you reference only that worksheet?

i.e. on worksheet Sheet1, in cell A1 you would put

//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!A1

in B1 you would put

//Server1/Path1/Path2/Path3/Blah_Blah_Blah/File1.xls!B1

etc. Then on worksheet Sheet2

=SUM(Sheet1!A1,Sheet1!B1.... etc.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums

Last edited by shades; 10-31-08 at 14:23.
Reply With Quote
  #6 (permalink)  
Old 10-31-08, 15:20
pepemosca pepemosca is offline
Registered User
 
Join Date: Apr 2008
Posts: 189
I have the file that I want to copy: already done.
I don't want to change it.

I just need to copy what is on the cells. The formula property.

I don't see the light here
Reply With Quote
  #7 (permalink)  
Old 10-31-08, 15:25
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Can you post a sample .xls file (zipped) of this?
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #8 (permalink)  
Old 11-05-08, 13:00
pepemosca pepemosca is offline
Registered User
 
Join Date: Apr 2008
Posts: 189
Arrow

Here is the sample.

Also has a Macro to check the error.

Thanks!
Attached Files
File Type: zip Libro2.zip (5.3 KB, 19 views)
Reply With Quote
  #9 (permalink)  
Old 11-19-08, 09:14
pepemosca pepemosca is offline
Registered User
 
Join Date: Apr 2008
Posts: 189
Any ideas? Help?! HELP!?!?!

(I'm kind of desperate)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On