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: 3,355
Default Function Shift Pressed not working in Excel 2007

I'm sure someone here steered me to this function when I was having some
issues programmatically opening excel workbooks when the shift key was
pressed. I've just migrated to Office 2007 and this function isn't working.

'Declare API
Declare Function GetKeyState Lib "User32" _
(ByVal vKey As Integer) As Integer
Const SHIFT_KEY = 16
Function ShiftPressed() As Boolean
'Returns True if shift key is pressed
ShiftPressed = GetKeyState(SHIFT_KEY) < 0
End Function

Can someone assist?

Thanks,
Barb Reinhardt
 
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
CTRL+SHIFT+) is not working in Excel 2007 Nagender Rathi Excel Discussion (Misc queries) 5 December 24th 09 07:18 PM
scroll function not working in excel 2007 scrool problem Excel Worksheet Functions 1 December 3rd 08 06:10 PM
Value function not working as expected in Excel 2007 bdevier Excel Worksheet Functions 1 November 28th 08 05:24 PM
paste function not working Excel 2007 Iowagal Excel Discussion (Misc queries) 2 November 14th 08 12:36 PM
Excel 2007 - sum function not working IVCC Excel Worksheet Functions 2 June 10th 08 12:09 AM


All times are GMT +1. The time now is 08:23 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"