Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Formula in VBA!!!

Using VBA what syntax do I use to Take the figure in B7 and multiply it by a
figure in b8
Thanks


--
Norton Professional 2004 says this email is clean...believe it


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Formula in VBA!!!

Range("b7")*range("b8")

or

Cells(7,2)*cells(8,2)

If the result is to go into a cell (say A1), then
Range("a1")=Range("b7")*range("b8")

HTH

"PCOR" wrote:

Using VBA what syntax do I use to Take the figure in B7 and multiply it by a
figure in b8
Thanks


--
Norton Professional 2004 says this email is clean...believe it



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Formula in VBA!!!

without any validation at all:

with activesheet
msgbox .range("b7").value * .range("b8").value
end with



PCOR wrote:

Using VBA what syntax do I use to Take the figure in B7 and multiply it by a
figure in b8
Thanks

--
Norton Professional 2004 says this email is clean...believe it


--

Dave Peterson
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
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 06:49 PM.

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"