Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2011, 05:53 AM
alamorchgirl alamorchgirl is offline Fill Series Windows Vista Fill Series Office 2007
Novice
Fill Series
 
Join Date: May 2011
Posts: 7
alamorchgirl is on a distinguished road
Default Fill Series

Is there a way to produce a fill series (e.g. Mon, Tue, Wed) using a keyboard shortcut?
Reply With Quote
  #2  
Old 08-15-2011, 10:05 AM
Catalin.B Catalin.B is offline Fill Series Windows Vista Fill Series Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Just set a shortcut key to run a macro like this one:
instructions : http://www.bettersolutions.com/word/...C216621011.htm


Sub LoopFillRange()
' Fill a range by looping through cells

Dim CellsDown As Long, CellsAcross As Long
Dim CurrRow As Long, CurrCol As Long

Dim CurrVal As Long

' Get the dimensions
CellsDown = 1
If CellsDown = 0 Then Exit Sub
CellsAcross = 7
If CellsAcross = 0 Then Exit Sub

'
' Loop through cells and insert values
CurrVal = 1
Application.ScreenUpdating = False
For CurrRow = 1 To CellsDown
For CurrCol = 1 To CellsAcross
Range("A1").Offset(CurrRow - 1, CurrCol - 1).Value = CurrVal
CurrVal = CurrVal + 1
Next CurrCol
Next CurrRow

' Display elapsed time
Application.ScreenUpdating = True

End Sub
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Series Color - Macro judicial85 Excel Programming 0 03-14-2011 02:35 PM
Data Series Zach Excel 1 11-05-2010 02:45 PM
Fill Series Selecting specific text out of a series of columns speedycorn1 Word 3 11-01-2010 02:58 PM
Fill Series Uniform color for scatter plot with 2 series gramentz Excel 2 01-17-2010 08:21 AM
Custom animating a line chart by series and category. Gahzi PowerPoint 0 05-19-2009 11:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft