+ Reply to Thread
Results 1 to 10 of 10

RowHeight & name manager.

  1. #1
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    RowHeight & name manager.

    I have the following two questions:
    1.i was using the following statement Rows("start:lr").RowHeight
    Were start is a row defined by the user and lr is the last row.
    However Excel is not resizing this range row height why?

    2. I have the following vba statement with is url = Range(URL_UK & i)
    URL_UK is a Column which I modified under name manager.
    However in VBA it says that URL_UK = 0.
    And I’m not sure why?

    Thank you for your helo

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: RowHeight & name manager.

    1 If you used "start:lr" then VBA would be looking for a named range called 'start:lr'.

    2 VBA sees URL_UK as an undeclared variable, if you want to refer to a range with the name 'URL_UK' you would need to use Range("URL-UK").
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: RowHeight & name manager.

    Thank you for your help.
    1. In my case what will be the right syntax to change the row height of ("start:lr")
    2.I tried Range(“URL_UK” & i) as you suggested however was no luck.
    any other ideas?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: RowHeight & name manager.

    1 Perhaps.
    Please Login or Register  to view this content.
    2 That's not what I suggested, all I suggested was if you want to refer to the range 'URL_UK' you would need to use Range("URL_UK").

    What are you actually trying to do?

  5. #5
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: RowHeight & name manager.

    Hi,

    1. Works great thank you
    2. In order to make my code more flexible I defined column AC as URL_UK. However in when I use the following syntax url = Range(URL_UK & i) instead of url = Range( “AC” & i).

    However this is not working how can I make this work?.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: RowHeight & name manager.

    How exactly have you defined 'URL_UK'?

    Have you defined it to refer to the range AC:AC (or $AC:$AC) or to refer to the string 'AC'?

  7. #7
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: RowHeight & name manager.

    I defined it as $AC:$AC

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,249

    Re: RowHeight & name manager.

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,249

    Re: RowHeight & name manager.

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: RowHeight & name manager.

    Thank you i will give it a try

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Slow RowHeight behavior
    By marc.klein@free.fr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2022, 06:53 AM
  2. [SOLVED] Macro to set RowHeight after ColorIndex.
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2013, 02:52 AM
  3. Automatically adjust rowheight?
    By h0ps in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2012, 11:51 AM
  4. Nested Case RowHeight Adjust
    By ultimastryder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2010, 04:41 PM
  5. rowHeight
    By fmardani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2006, 02:06 AM
  6. [SOLVED] Slow RowHeight behavior
    By marc.klein@free.fr in forum Excel General
    Replies: 2
    Last Post: 08-22-2006, 12:30 PM
  7. [SOLVED] Setting Rowheight in a Macro (Excell200/VB6)
    By Derk in forum Excel General
    Replies: 0
    Last Post: 03-13-2006, 11:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1