Consulting

Results 1 to 3 of 3

Thread: Solved: How to insert values in rows through for loop

  1. #1

    Solved: How to insert values in rows through for loop

    Hi,
    I want to insert values through the inputBox() using the for loop in a particluar column for some range of rows. I used the following code but its throughin error

    [VBA]
    For i = 3 To 9
    Range("G&i").Select
    ActiveCell.FormulaR1C1 = InputBox("Enter Value")
    Next
    [/VBA]
    could anyone please help me to resolve my issue.


    Thanks In Advance

    Sankar.

  2. #2

    Got the Solution

    Hi,

    I got the solution....

    i used the below code for

    [VBA]
    For i = 3 To 9
    Range("G" & i).Select
    ActiveCell.FormulaR1C1 = InputBox("Enter Value")
    Next i
    [/VBA]

  3. #3
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Sankartalam, if you have had a solution or your question is solved please mark your thread solved by using "Thread Tools" at the top of this window and choose "Mark as solved"
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •