+ Reply to Thread
Results 1 to 8 of 8

Step usage, value outputting

  1. #1
    Registered User
    Join Date
    11-15-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    4

    Step usage, value outputting

    Hello!
    I'm new to VBA Excel and I can't figure out code for this one
    1. I have a function z=4h-3h, h values are from -6 to 6 with step 3 (-6;-3;0;3;6), so I can't figure out what code is to do that step and after that I don't know how to show all these values in one msgbox
    Thanks in advance!
    Last edited by gb_; 11-16-2016 at 03:38 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Beginner need help

    This looks like a college question.

    We do not answer college questions.

    We can however give advice.

    You will however make the effort to create something for us to comment on.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    11-15-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    4

    Re: Beginner need help

    If you could give me some advice, it would be nice. Or give me some links where I can find some information about these situations.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Beginner need help

    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 go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Step usage, value outputting

    Quote Originally Posted by gb_ View Post
    Hello!
    I'm new to VBA Excel and I can't figure out code for this one
    1. I have a function z=4h-3h, h values are from -6 to 6 with step 3 (-6;-3;0;3;6), so I can't figure out what code is to do that step and after that I don't know how to show all these values in one msgbox
    Thanks in advance!
    We will gladly guide you.
    Do you have some steps that you made so far?

    Also: z=4h-3h is same as z = h so is this well defined?

  6. #6
    Registered User
    Join Date
    11-15-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    4

    Re: Step usage, value outputting

    z=4h-3h+17 this is the right one.
    So, I know how to do it in long way, by writing down function and every time change h value and after that I know how to output all z values.

    And this how far I made it in short version.

    Please Login or Register  to view this content.
    Is there even something right in this code? I know that my msgbox is wrong and in this case how to get all z values?

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Step usage, value outputting

    That is good so far.

    But 4*H - 3* H will always give you H, so check your formula or change it to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please Login or Register  to view this content.
    Last edited by mehmetcik; 11-16-2016 at 02:35 PM.

  8. #8
    Registered User
    Join Date
    11-15-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    4

    Re: Step usage, value outputting

    Thank you, everything works just perfectly.

+ 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. Beginner help
    By saratu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2014, 02:32 PM
  2. Beginner If Then Help
    By Than924 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2012, 09:38 AM
  3. Help please for a beginner
    By LACKLUSTABUSTA in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2010, 06:41 AM
  4. Help for a beginner?
    By TimD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2009, 06:58 PM
  5. Beginner
    By Mardikas09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2009, 05:59 AM
  6. VBA Beginner
    By tt388 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2007, 09:17 AM
  7. Beginner's help
    By jello in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2005, 12:06 AM

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