|
Anthony's VBA Forum Where the knowledge is shared |
|
|
View previous topic :: View next topic |
Author |
Message |
dolores09
Joined: 08 Jan 2009 Posts: 1
|
Posted: Fri Jan 09, 2009 9:27 am Post subject: Input values copied N times based on user input - Pls help |
|
|
How can I create a macro that based on user input (2 values and 1 counter) repeats/copies the input parameters as many times as the counter input? Example if the input parameters are “X”; “Y”and 11, the macro would copy 11 times X and Y in the next available blank row of a worksheet. Would appreciate any clues, I’m no expert… |
|
Back to top |
|
|
Kenneth Hobson Gold Member
Joined: 25 Mar 2007 Posts: 21 Location: Tecumseh, OK
|
Posted: Wed Mar 04, 2009 10:41 pm Post subject: |
|
|
Welcome to the forum!
When you say next blank row, do you mean in a certain column or the absolute last row meaning: A2, B3, C4, D1 are the last cells to contain data. Then you want A3 or A5 if you wanted to input to say row A.
A Userform with textbox controls would be one way to gather your inputs. Or, use InputBox to gather the data. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|