+ Reply to Thread
Results 1 to 8 of 8

Can't figure out how to get my offset function to work correctly in VBA

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Great Bend, Pennsylvania
    MS-Off Ver
    Excel 2000
    Posts
    22

    Can't figure out how to get my offset function to work correctly in VBA

    The code works great fills in all the values. Problem is I'm already offsetting to get my "number1" but I need to offset "DIA" at the same time to get it to stay with the "number1".

    Basically I need to select two different cells and have them offset one cell down at a time together.

    Please Login or Register  to view this content.
    I am soooo close to my desired outcome, feel free to ask any questions.
    I can send over the file I'm working on if interested as well
    Last edited by Dustin S.; 04-03-2009 at 01:50 PM. Reason: Rule #1

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    re: code works but need it to offset

    Dustin S.,

    What is the sheetname where DIA is getting its value?

    In the next loop, shoud DIA get its next value from Range("b24")?


    Have a great day,
    Stan
    Last edited by stanleydgromjr; 04-03-2009 at 12:44 PM.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

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

    re: code works but need it to offset

    Welcome to the Forum

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    01-14-2009
    Location
    Great Bend, Pennsylvania
    MS-Off Ver
    Excel 2000
    Posts
    22

    Re: code works but need it to offset

    What is the sheetname where DIA is getting its value?
    For now all work is done on "Feeds and Diameters"

    In the next loop, shoud DIA get its next value from Range("b24")?
    exactly!!

  5. #5
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Can't figure out how to get my offset function to work correctly in VBA

    Dustin S.,

    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).

    Please Login or Register  to view this content.

    Have a great day,
    Stan

  6. #6
    Registered User
    Join Date
    01-14-2009
    Location
    Great Bend, Pennsylvania
    MS-Off Ver
    Excel 2000
    Posts
    22

    Re: Can't figure out how to get my offset function to work correctly in VBA

    EXACTLY what I was looking for!

    Would it be too much to ask what all you changed and why?

    Just trying to learn.

    Thank You either way for the code help.

  7. #7
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Can't figure out how to get my offset function to work correctly in VBA

    Dustin S.,

    Would it be too much to ask what all you changed and why?
    You wanted to get the value for "DIA" from B23, down.


    Please Login or Register  to view this content.

    Have a great day,
    Stan

  8. #8
    Registered User
    Join Date
    01-14-2009
    Location
    Great Bend, Pennsylvania
    MS-Off Ver
    Excel 2000
    Posts
    22

    Re: Can't figure out how to get my offset function to work correctly in VBA

    Thank you for taking the time to explain, I also appreciate the way you took what I had and added what I needed rather than changing all the code. Makes it easier for me to edit if need be,

    Thanks for all the help

+ 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