Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using an Activex DLL to apply formulas in Excel

Hello all,

As a simple example, say I have an Excel worksheet that has data, i
cells A1=7 and B1=14. For cell C1, I want it to be some formula lik
=a1*b1. Instead of putting the formula in that cell, could I use a
activex dll to apply the formula and put the result in cell C1?
Remember, I just want the result, not the forumla. I would like th
activex component to apply the formula. TIA

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Using an Activex DLL to apply formulas in Excel

I'm not sure where the issue of an ActiveX DLL fits in here, but
the code would be something like the following:

Range("C1").Value = Range("A1").Value * Range("B1").Value


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"YingYang " wrote in
message ...
Hello all,

As a simple example, say I have an Excel worksheet that has

data, ie
cells A1=7 and B1=14. For cell C1, I want it to be some

formula like
=a1*b1. Instead of putting the formula in that cell, could I

use an
activex dll to apply the formula and put the result in cell C1?
Remember, I just want the result, not the forumla. I would

like the
activex component to apply the formula. TIA!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using an Activex DLL to apply formulas in Excel

Thanks for the reply. So all I need to do is write the dll in VB an
compile it as an activex dll? On the Excel spreadsheet, I would creat
a push button to activate it. Could you provide some sample code o
how to activate the dll from the spreadsheet? Would it be a macro?
Also, the spreadsheet with data on it needs to be open right? Coul
you also provide some sample code or even point me to the righ
direction on how to write the activex dll on the VB side? Thank
again

--
Message posted from http://www.ExcelForum.com

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
How can I insert a row and have the existing formulas apply? Charity Worker in Africa Excel Discussion (Misc queries) 6 October 6th 05 10:05 AM
How can I insert a row and have the existing formulas apply? Charity Worker in Africa Excel Discussion (Misc queries) 1 October 5th 05 03:43 PM
How can I insert a row and have the existing formulas apply? Charity Worker in Africa Excel Discussion (Misc queries) 0 October 5th 05 03:35 PM
How do you apply Names in formulas? Mac Excel Discussion (Misc queries) 2 August 2nd 05 11:51 PM
Can Excel recognize when data is entered and apply formulas? cwool4512 Excel Worksheet Functions 2 July 7th 05 07:58 PM


All times are GMT +1. The time now is 11:15 AM.

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

About Us

"It's about Microsoft Excel"