Formulas in macros

  • Thread starter Thread starter shimeel
  • Start date Start date
S

shimeel

Hello,

in one of the macros, i need apply the =SUBTOTAL(9, .... ) formula ove
a specific range. i have that range stored in a range variable name
rangeForSubtotal.

how could i do that..


thank you

shimee
 
Hi
something like
activecell.formula="=SUBTOTAL(9," & range("A1:A100").address & ")"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ShowAllData 2
writing a sort macro 2
Counting Rows 1
Deleting Worksheet 1
Excel VBA 1
subtotal colored cells 4
Storing distinct values in an array 2
macro ignore formulas 3

Back
Top