View Single Post
 
Old 03-08-2014, 10:47 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use code like:
Code:
Option Explicit
Dim i As Long, lRow As Long
 
Private Sub SpinButton1_SpinDown()
i = 1
End Sub
 
Private Sub SpinButton1_SpinUp()
If i = 16 Then Exit Sub
i = i + 1
With ActiveSheet
  lRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
  .Range("A1:A" & lRow).Copy
  .Cells(1, i).PasteSpecial Paste:=xlPasteFormats
End With
End Sub
Note: As coded, any spin-down resets to Column A.

PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote