#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Macro Function


In the module code,i want to write a code with using IF functions.
for that i need to check Sheet cell values.
when i write within a function like this

Sheet.cells([33],[C]) to refer the cell value
excel returns a error #value.
How i can refer a cell in a sheet in macro.
i am willing to write this with out introducing a user form.
thuva


--
thuva
------------------------------------------------------------------------
thuva's Profile: http://www.excelforum.com/member.php...o&userid=36789
View this thread: http://www.excelforum.com/showthread...hreadid=565020

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Macro Function

Try something like

Sheet1.cells(33,"C").Value

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"thuva" wrote in
message ...

In the module code,i want to write a code with using IF functions.
for that i need to check Sheet cell values.
when i write within a function like this

Sheet.cells([33],[C]) to refer the cell value
excel returns a error #value.
How i can refer a cell in a sheet in macro.
i am willing to write this with out introducing a user form.
thuva


--
thuva
------------------------------------------------------------------------
thuva's Profile:

http://www.excelforum.com/member.php...o&userid=36789
View this thread: http://www.excelforum.com/showthread...hreadid=565020



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
Can I write a Macro into an IF Function? FX42N Excel Discussion (Misc queries) 1 June 5th 06 06:06 AM
HELP NEEDED FOR IF Function Inside a Macro Sandi Excel Worksheet Functions 1 June 2nd 06 04:14 AM
Adding a Function to a cell when inserting a row from a macro Mbarnes Excel Worksheet Functions 0 May 31st 06 04:38 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Function Macro for Nested IF Qaspec Excel Worksheet Functions 5 March 10th 05 07:25 PM


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