+ Reply to Thread
Results 1 to 6 of 6

putting $ in the Range which inside .Formula

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    4

    putting $ in the Range which inside .Formula

    Hi,

    1) Below code will result cell C2 as "=VLOOKUP($A2,'Jul-Dec''12'!C382:AI405,33,FALSE)", how to make the C382:AI405 to $C$382:$AI$405?

    Please Login or Register  to view this content.
    Last edited by viva2kh; 10-18-2012 at 02:15 AM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: putting $ in the Range which inside .Formula

    Hello viva2kh,

    Just highlight
    C382:AI405
    and press F4
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: putting $ in the Range which inside .Formula

    Hello Winon,
    Sorry, I should make my statement clear.
    I mean I need the result in C2 to appear as "=VLOOKUP($A2,'Jul-Dec''12'!$C$382:$AI$405,33,FALSE)" automatically after run the macro.

    Thank you for your reply.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: putting $ in the Range which inside .Formula

    hi viva2kh,

    Please Login or Register  to view this content.
    Last edited by watersev; 10-18-2012 at 04:06 AM.

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: putting $ in the Range which inside .Formula

    Thanks guys! I just change to

    .address(1,1)

    and the $ is appear now after run the macro.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: putting $ in the Range which inside .Formula

    Hello viva2kh,

    I am still a bit confused here.

    You can try:

    Please Login or Register  to view this content.
    If that does not work, could you please upload a sample WorkBook, showing what you have, and showing what you would like to have?

    Thank you.
    Last edited by Winon; 10-18-2012 at 04:15 AM. Reason: Corrected Code

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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