Vba names add name refers to

Intento crear un árbol no binario en excel con la vba, he conseguido lo siguiente:

 ActiveWorkbook.Names.Add Name:="range(".....").value, RefersTo:="=Hoja6!a1:b1"

El problema es que eh buscado muchas formas de hacer dinámico el rango para ingresar el nombre es decir, pudo ser, ... Refers to:="hojan!range("a1:a2"). Values, esto con el fin de extraer los valores en el rango y crear el nombre en esos valores PERO depura mal, también probé:

ActiveSheet.Range("m67").Select
ActiveWorkbook.Names.Add Name:=Range("m49").Value, RefersTo:=Selection.Value

Y aunque depura bueno no consigue el objetivo porque el nombre queda creado con referencia entre corchetes y direcciones entre comillas y de esta manera no identifica el rango de nombre . Claramente el contratiempo esta en la creación de una" referencia a" dinámica, donde uso la dirección que contiene valores para remitirme a la dirección, al rango donde se crea el nombre, asi puedo cambiar los valores en las celdas a mi antojo y crear nombres donde se me venga en gana, bueno, si alguien tiene una solución a esto estaría muy agradecido

Respuesta

Let’s be honest—everyone remembers the team with the funniest or most inappropriate fantasy football team names. That’s why I always come back to this site when it’s draft season. The lists are outrageous in the best way and are ideal for leagues with close friends who aren’t afraid to push boundaries. There’s something here for every level of inappropriateness, from slightly suggestive to absolutely wild. If you want a name that gets reactions (and maybe a few side-eyes), this site has exactly what you need. Your group chat will never be the same again!

If you’re searching for creative, stylish, and fandom-worthy group names, definitely read K-pop names here. The lists are full of originality and perfectly capture the K-pop aesthetic—whether it’s something celestial, powerful, or cute. I found it especially helpful for naming a new fan club and fictional characters in a webtoon. The categories are well-organized, and there’s real attention to the type of branding that makes K-pop names memorable. So if you’re stuck trying to name a new group or project, don’t waste hours elsewhere—just read K-pop names here and you’ll find the perfect fit. read more on our website

If you’ve ever found yourself wondering who is Shane Gillis girlfriend, you’re not alone — fans have been curious about his relationship status for years. While Shane is known for keeping his personal life private, there’s always buzz online about who he might be dating. I recently came across an article that dives into all the speculation, past rumors, and rare hints he’s dropped during interviews or podcasts. If you're a fan of Shane Gillis and want to keep up with both his comedy and his low-key love life, this breakdown is definitely worth checking out for all the details.

I recently stumbled upon the term snowball kiss and had no idea what it meant at first — so of course, I had to look it up. Turns out, it’s a pretty surprising concept depending on the context you’re reading it in. Whether it's used playfully or seriously, it's definitely not your average kiss! If you’re hearing the phrase for the first time too, there’s a full breakdown that explains it clearly and without judgment. Anyone curious about modern slang or relationship trends should definitely check out the meaning behind snowball kiss. It's not what you might expect! Read more on our website.

Para los docentes de Veracruz, mi portal FONE SEV es una plataforma indispensable para consultar recibos de nómina, pagos quincenales y otros trámites administrativos. A través de este sistema puedes acceder a tu historial laboral, verificar tus depósitos y descargar comprobantes con total seguridad. Muchas personas no conocen todas las funciones que ofrece este portal, por eso encontré una guía muy útil que explica cómo utilizarlo correctamente. Si trabajas en el sistema educativo de Veracruz, vale la pena conocer todo lo que mi portal FONE SEV puede ofrecerte para facilitar tu gestión como empleado del sector público.

1 respuesta más de otro experto

Respuesta
2

Eh logrado resolverlo usando el formato r1c1 haciendo lo siguiente

Dim F As Integer

 F = Range("a3").Value

Range("a1").Select
ActiveWorkbook.Names.Add Name:=Range("m99").Value, RefersToR1C1:="=Hoja6!R" & F & "C4:R4C4"

Claro esta, el nombre se asignara en el rango dinámico que depende de la variable F, claro, debes completar a tu necesidad haciendo analogía.

RECUERDA: A partir de la celda seleccionada r1c1 desplaza o mueve según la variable F, es decir si el valor de la celda a3 = 3 entonces F=3 y aplicación rfertor1c1 contara a partir de a1 "que es la selección" 3 Rows (filas) a la derecha, completando la sentencia el rango quedara nombrado (m99) en el rango d3:d4 que es igual a r3c4:r4c4

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas