Excel formula to VBA code -


how go turning excel formula =b4/b5 vba code? far, code not work of course:

activecell.formular1c1 = "=b4/b5" 

as can tell, not familiar r1c1. if needed, have created function col_letter() takes number , returns letter of corresponding column. appreciated!

as pointed out in comments @siddarth looking for:

activecell.formula = "=b4/b5" 

if in hurry , need make macro work, compromise on code readability may acceptable. in case following:

  1. start recording macro
  2. do need do
  3. stop recording , extract line macro code

note work everything, may lead confusing code.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -