Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Writing Excel Formula To A Cell

I am trying to write a formula that translates text into a
barcode to a cell ..

Here is what I am doing:
-------------------------------------------------
ActiveCell.Value = "=WaspBarCode('" & Trim(arrResults(2,
x)) & " ', 12, 20, 0, 1, FALSE, '" & Trim(arrResults(2,
x)) & "')"
-------------------------------------------------

And I get this error:
-------------------------------------------------
Runtime Error '1004':

Application-Defined or object-defined error.
-------------------------------------------------

If I take the "=" out in "=WaspBarCode ." it prints to the
cell but the formula does something all screwy .. Like
turns each of the inputs to the formula (12, 29, 0, 1)
into its own barcode.

Anyone know how I can write a formula to an cell?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 516
Default Writing Excel Formula To A Cell

I'm not positive, but I think if you take out "ActiveCell.Value" and replace it with "ActiveCell.Formula" that should write the formula to the cell. Hope this helps.
Matt

"Nathan" wrote:

I am trying to write a formula that translates text into a
barcode to a cell ..

Here is what I am doing:
-------------------------------------------------
ActiveCell.Value = "=WaspBarCode('" & Trim(arrResults(2,
x)) & " ', 12, 20, 0, 1, FALSE, '" & Trim(arrResults(2,
x)) & "')"
-------------------------------------------------

And I get this error:
-------------------------------------------------
Runtime Error '1004':

Application-Defined or object-defined error.
-------------------------------------------------

If I take the "=" out in "=WaspBarCode ." it prints to the
cell but the formula does something all screwy .. Like
turns each of the inputs to the formula (12, 29, 0, 1)
into its own barcode.

Anyone know how I can write a formula to an cell?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Yes!

Works.
Thanks Man.


-----Original Message-----
I'm not positive, but I think if you take

out "ActiveCell.Value" and replace it
with "ActiveCell.Formula" that should write the formula to
the cell. Hope this helps.
Matt

"Nathan" wrote:

I am trying to write a formula that translates text

into a
barcode to a cell ..

Here is what I am doing:
-------------------------------------------------
ActiveCell.Value = "=WaspBarCode('" & Trim(arrResults

(2,
x)) & " ', 12, 20, 0, 1, FALSE, '" & Trim(arrResults(2,
x)) & "')"
-------------------------------------------------

And I get this error:
-------------------------------------------------
Runtime Error '1004':

Application-Defined or object-defined error.
-------------------------------------------------

If I take the "=" out in "=WaspBarCode ." it prints to

the
cell but the formula does something all screwy .. Like
turns each of the inputs to the formula (12, 29, 0, 1)
into its own barcode.

Anyone know how I can write a formula to an cell?

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrolling in Excel 07 while writing a formula - Please help!!! Ollie Excel Discussion (Misc queries) 1 April 9th 08 04:03 PM
need help writing a formula in excel Marco New Users to Excel 1 March 26th 08 08:34 PM
Help writing an Excel Formula bella0711 Excel Worksheet Functions 4 September 9th 05 03:57 PM
Trouble writing an excel formula... Stumped by If Thens.... Excel Worksheet Functions 3 December 19th 04 02:39 PM
Writing a formula into a cell Dr. Schwartz[_3_] Excel Programming 2 January 26th 04 01:31 PM


All times are GMT +1. The time now is 10:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"