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 Formulae in Macros


Hi guys, can anyone help me with this problem i have, i'm using th
folling formula:

=SUM(IF(('Full Table'!$AF$2:$AF$6000="Baby Care")*('Ful
Table'!$AG$2:$AG$6000="Goods"),'Full Table'!$AE$2:$AE$6000))

To get this formula to work though i have to do CTRL SHIFT and ENTER.

The problem is i like to use my formulae in my macros so theres never
formula just sitting in the workbook to try and save on space using th
following command line:

Worksheets("Full Table").Range("H2").Value = _

"=IF(ISERROR(VLOOKUP(G2,Requisitioners!$A$2:$E$155 ,2,FALSE)),"""",(VLOOKUP(G2,Requisitioners!$A$2:$E $155,2,FALSE)))"

But if i try this command with the above formula it doesn't wor
because of the CTRL SHIFT ENTER and if i try using {} around th
formula it doesn't work either.

Can someone please help me with this please?

Cheers,

Donni.

:confused

--
DDONN
-----------------------------------------------------------------------
DDONNI's Profile: http://www.excelforum.com/member.php...fo&userid=1544
View this thread: http://www.excelforum.com/showthread.php?threadid=27207

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using Formulae in Macros

Worksheets("Full Table").Range("H2").FormulaArray =

--
Regards,
Tom Ogilvy


..
"DDONNI" wrote in message
...

Hi guys, can anyone help me with this problem i have, i'm using the
folling formula:

=SUM(IF(('Full Table'!$AF$2:$AF$6000="Baby Care")*('Full
Table'!$AG$2:$AG$6000="Goods"),'Full Table'!$AE$2:$AE$6000))

To get this formula to work though i have to do CTRL SHIFT and ENTER.

The problem is i like to use my formulae in my macros so theres never a
formula just sitting in the workbook to try and save on space using the
following command line:

Worksheets("Full Table").Range("H2").Value = _


"=IF(ISERROR(VLOOKUP(G2,Requisitioners!$A$2:$E$155 ,2,FALSE)),"""",(VLOOKUP(G
2,Requisitioners!$A$2:$E$155,2,FALSE)))"

But if i try this command with the above formula it doesn't work
because of the CTRL SHIFT ENTER and if i try using {} around the
formula it doesn't work either.

Can someone please help me with this please?

Cheers,

Donni.




--
DDONNI
------------------------------------------------------------------------
DDONNI's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Using Formulae in Macros

Hi
try:
Worksheets("Full Table").Range("H2").formulaarray= _

"=IF(ISERROR(VLOOKUP(G2,Requisitioners!$A$2:$E$155 ,2,FALSE)),"""",(VLOOKUP(G2,Requisitioners!$A$2:$E $155,2,FALSE)))"


"DDONNI" wrote:


Hi guys, can anyone help me with this problem i have, i'm using the
folling formula:

=SUM(IF(('Full Table'!$AF$2:$AF$6000="Baby Care")*('Full
Table'!$AG$2:$AG$6000="Goods"),'Full Table'!$AE$2:$AE$6000))

To get this formula to work though i have to do CTRL SHIFT and ENTER.

The problem is i like to use my formulae in my macros so theres never a
formula just sitting in the workbook to try and save on space using the
following command line:

Worksheets("Full Table").Range("H2").Value = _

"=IF(ISERROR(VLOOKUP(G2,Requisitioners!$A$2:$E$155 ,2,FALSE)),"""",(VLOOKUP(G2,Requisitioners!$A$2:$E $155,2,FALSE)))"

But if i try this command with the above formula it doesn't work
because of the CTRL SHIFT ENTER and if i try using {} around the
formula it doesn't work either.

Can someone please help me with this please?

Cheers,

Donni.




--
DDONNI
------------------------------------------------------------------------
DDONNI's Profile: http://www.excelforum.com/member.php...o&userid=15443
View this thread: http://www.excelforum.com/showthread...hreadid=272070


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
Formulae: Paste value formulae after doing an average operation Lim Excel Discussion (Misc queries) 4 April 20th 08 07:31 PM
why does Excel see my simple formulae as macros now? Chris Excel Worksheet Functions 4 March 21st 06 06:54 PM
Searching TEXT in formulae, rather than results of formulae AndyE Excel Worksheet Functions 1 July 15th 05 10:57 AM
convert lotus 123w macros to excel macros rpiescik[_2_] Excel Programming 1 September 19th 04 12:41 PM
Macros to hide/protect formulae Mike[_65_] Excel Programming 2 January 8th 04 09:03 PM


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

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"