View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
sb1920alk sb1920alk is offline
external usenet poster
 
Posts: 100
Default How to grab a reference into VB

I have a macro that publishes a sheet as a webpage in the range "$A$1:$K$56"
but I'd like to change it to "$A$1:$K$**" instead where the ** number is
pulled from a cell, say P1 based on the result of a formula in P1 because I
have to manually change the macro every time the number of rows changes. Is
that possible?

Thanks,