+ Reply to Thread
Results 1 to 2 of 2

Excel VBA beginner problem

  1. #1
    Registered User
    Join Date
    03-14-2015
    Location
    Prague
    MS-Off Ver
    2007
    Posts
    1

    Excel VBA beginner problem

    Hello.
    Can you please help me with this Excel VBA problem ? I have created a macro, that calculates a value in Solver for i times, where i is integer variable from 1 to 10. Then it copies answer from a designated cell and pastes it in cell A1 for example. I would like to see it write answers in cells Ai, that means A1 to A10.

    .....
    Range("B1").Select
    Selection.Copy
    Range("A1").Select (i would like to change this particular line to some thing meaning Ai... A1,A2,...,A10)
    ...
    So for the first calculation it writes to cell A1, for second to A2 and so on.

    A B
    i Value
    1 5
    2 10
    3 15
    4 20
    etc...
    E
    Thank you in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Excel VBA beginner problem

    Hi, Branco, welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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 in excel VBA
    By joegor in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-28-2014, 09:44 AM
  2. excel beginner
    By virgome in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 03-18-2013, 07:00 AM
  3. excel beginner
    By anogueira.igate in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-16-2012, 07:13 AM
  4. beginner's problem
    By fidley in forum Excel General
    Replies: 2
    Last Post: 04-10-2009, 05:46 AM
  5. beginner problem: getting selected rows, row by row
    By Holger Beese in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2005, 06:06 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