LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default Putting a value in specifc Excel cell from Visual Basic

Hi Hgeron

You can't change the properties of a cell by using a function - you
need a sub procedure for that. Hence, you need something like a Sub
compute() to do this.

Best regards

Richard


hgeron wrote:
I have a function that is called, but I want to place intermediate numbers on
the Spreadsheet. This function fails with a # value error.

Function compute(x)
'read in some values
bw = Range("bw").Value
dp = Range("dp").Value

' fails here - I want to place the value of 23 in the dcap cell
Range("dcap").Value = 23
...following lines fail to execute

whats wrong?




--
hgeron


 
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
Workbook_open : Putting in message in titlebar (Visual Basic) Jorgen [DK/2600] Excel Worksheet Functions 4 May 20th 06 04:20 PM
Can I run Visual Basic procedure using Excel Visual Basic editor? john.jacobs71[_2_] Excel Programming 3 December 26th 05 02:22 PM
Excel Cell Formating in Visual Basic 6.0 ElanKathir .S.N Excel Programming 2 May 3rd 04 11:54 AM
Visual Basic to reference value in Excel cell Raymond[_4_] Excel Programming 1 October 28th 03 08:24 PM


All times are GMT +1. The time now is 08:17 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"