Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


Input values copied N times based on user input - Pls help

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
dolores09



Joined: 08 Jan 2009
Posts: 1

PostPosted: Fri Jan 09, 2009 9:27 am    Post subject: Input values copied N times based on user input - Pls help Reply with quote

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
View user's profile Send private message
Kenneth Hobson
Gold Member
Gold Member


Joined: 25 Mar 2007
Posts: 21
Location: Tecumseh, OK

PostPosted: Wed Mar 04, 2009 10:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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