+ Reply to Thread
Results 1 to 9 of 9

Vba code for cell reference

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    india
    MS-Off Ver
    excel 2003
    Posts
    8

    Vba code for cell reference

    I have a worksheet with 2000 rows.
    I want to type my desire row no. in H2 Cell and create a command button 'GoTo' after H9.
    I want to jump on (H2*64+4) ; when i click on goto command button.
    please tell me VBA Code for this command button.

  2. #2
    Registered User
    Join Date
    08-20-2008
    Location
    Philippines
    MS-Off Ver
    Office 2007
    Posts
    18

    Re: Vba code for cell reference

    Try these code:


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-20-2009
    Location
    india
    MS-Off Ver
    excel 2003
    Posts
    8

    Re: Vba code for cell reference

    Thanks 4 trying but there is not correct for my problem. Plz help me.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Vba code for cell reference

    I can't understand what you mean.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    02-20-2009
    Location
    india
    MS-Off Ver
    excel 2003
    Posts
    8

    Re: Vba code for cell reference

    Sir, I have attached a link for my worksheet with problem.

    In this sheet I want type Desire Date in 'H2' Cell.
    For Example I type 5 then cursor moves on Date '5'
    which is located on 'C228' = C & 4+(5-1)*56
    and when I type 28 then cursor moves on Date '28'
    which is located on cell 'C1516' = 4+27*56

    where 4 & 56 is constant and multiplier number with 56 is less then 1 from desire date.

    So plz check example sheet and give a code or solution for GoTo Command Button or something else for quick selection of Date.

    Note: Formulas in this sheet will be replaced with there values upto 3.

    link for file download:
    http://filefactory.com/file/af5418d/n/diary_part_xls
    Forward Message

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Vba code for cell reference

    Attach the file here using the Attachment button, your site won't let me download

  7. #7
    Registered User
    Join Date
    02-20-2009
    Location
    india
    MS-Off Ver
    excel 2003
    Posts
    8

    Re: Vba code for cell reference

    Sir, I have attached a link for my worksheet with problem.

    In this sheet I want type Desire Date in 'H2' Cell.
    For Example I type 5 then cursor moves on Date '5'
    which is located on 'C228' = C & 4+(5-1)*56
    and when I type 28 then cursor moves on Date '28'
    which is located on cell 'C1516' = 4+27*56

    where 4 & 56 is constant and multiplier number with 56 is less then 1 from desire date.

    So plz check example sheet and give a code or solution for GoTo Command Button or something else for quick selection of Date.

    Note: Formulas in this sheet will be replaced with there values upto 3.

    Download file from here
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-07-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 365
    Posts
    58

    Re: Vba code for cell reference

    try putting this in your button:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-20-2009
    Location
    india
    MS-Off Ver
    excel 2003
    Posts
    8

    Re: Vba code for cell reference

    Thanks kroz and Forums Administrator. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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