Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 20th, 2010, 05:29 PM
Authorized User
 
Join Date: Sep 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb character limit for FormulaArray, .address()

Howdee all.
I have a formula that I'm trying to set up to enter as a VBA-User Form macro.
Everything works... except.....
When I go to enter it as a formulaArray it spits out an error message, and in my research to find out why, I've learned that FormulaArray has a 255 character limit for strings.

My final equation that will show up in the cell is only 187 characters in length, but I've found that VBA actually reads the workbook's name into with the external:=true reference for
Code:
.address(RowAbsolute, ColumnAbsolute, External)
function.
In the case of workbook name being added to the equation, it winds up being 263 characters in length.

As not all file names are the same length-- some are much longer, and as not all sheet names would be the same length, I need to trim the name of something off, and am not sure how, or even if, I can do this.

As I'm pulling data off another worksheet within the same workbook, I would really like it to have the sheet name reference without having the workbook name reference.

So, my question is:

How can I keep the name of the workbook from being included in my equation, while still retaining an external:=true reference in the
Code:
.address()
, or can I set up a shorter means of accomplishing this and still obtain only what I need?

Thank you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
255 character limit in datagrid boundfield poogles ASP.NET 2.0 Basics 0 July 16th, 2007 04:18 PM
"Unable to set the FormulaArray property..." rduncan1 Excel VBA 2 August 18th, 2006 01:33 PM
FormulaArray problem Golem Excel VBA 0 December 28th, 2005 03:59 AM
control character limit within a Datagrid cell rayncarnation ASP.NET 1.0 and 1.1 Basics 1 October 21st, 2005 02:04 PM
Help! RTD and Range.FormulaArray nabongwon Excel VBA 1 December 31st, 2004 05:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.