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: 4
Default Excel macro works with keyboard shortcut, but not command button. Please Help.

I have constructed a macro in excel and when I execute it using the
keyboard shortcut from Sheet X it runs fine, but after I created a
command button and assigned the macro to it the macro no longer works
when clicking on the button. When I click the keyboard shortcut it
works, exact same macro programmed for command button doesn't work.
Any ideas? The macro language is below. Thanks in advance, any help
is appreciated! Michael

Sub POST_TO_BLOTTER_Click()
'
' ORDERS Macro
' Macro recorded 4/28/2006 by mneches
'
' Keyboard Shortcut: Ctrl o

Sheets("BLOTTER").Select
Dim Rng As Range
For Each Rng In Range("d3:d100") '
Rng.EntireRow.Cells(1, Columns.Count). _
End(xlToLeft)(1, 2).Value = Rng.Value
Next Rng
Application.CutCopyMode = False
Sheets("Sectors").Select
End Sub

 
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
TOOLBAR button or Keyboard Shortcut FOR Center Across Selection?? RajenRajput1 Excel Discussion (Misc queries) 13 April 29th 08 07:30 PM
What is the Keyboard Shortcut of Merge and Centre Tool Command Rao Ratan Singh Excel Discussion (Misc queries) 3 February 13th 05 10:27 PM
Use Keyboard with Command Button bw Excel Programming 2 August 27th 04 06:13 PM
Assigning global macro to keyboard shortcut in Excel 2003 Bob[_60_] Excel Programming 2 August 20th 04 12:53 AM
A good macro that works wrong with keyboard shortcut Allen[_4_] Excel Programming 1 September 12th 03 04:37 PM


All times are GMT +1. The time now is 05:42 AM.

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

About Us

"It's about Microsoft Excel"