LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Filling down a selection

I have a worksheet and it contains one row of information that I want to
autofill down and subtract numbers like below:



A B

Row1 Widget 500



Now I want to make a macro/code that will fill down until the number in row
B equals 1. Row B can change, in the example it is 500, but it could be
272, 25, 1000 etc...



So after running the macro the spreadsheet would look like below:



A B

Row1 Widget 500

Row2 Widget 499

Row3 Widget 498



I know there is an autofill method, but I just want the user to put in the
information in the first row, execute the macro/code and let Excel do the
work. This information will then be pulled into a Mail Merge Document and
labels will be printed, in the above example, there will be 500 lables,
Widget 1 through Widget 500. Any assistance in coding the Excel part would
be greatly appreciated.




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically filling a cell from a worksheet based on a selection Pbrent Excel Worksheet Functions 2 May 14th 10 03:39 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
filling information from one cell and filling another. Dianne Excel Worksheet Functions 1 August 15th 05 08:14 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM
Filling multiple cells based on 1 combo box selection Serrena Carter Excel Programming 1 August 30th 03 02:14 PM


All times are GMT +1. The time now is 06:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"