Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default WorkSheet Macro Help!


Dear all,

I am trying to create a macro in Excel that when user select a cell
listbox will appear. However, when I copy a cell to paste to anothe
cell, first this below macro run so that I could not paste the valu
that I copied. It means that if I want to use this macro in thi
worksheet I couldn't copy one cell to another cell.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Listbox1.visible=true
End Sub

I would like to have a code that when I copy a cell this macro wil
work until I finish to paste to another cell.

Could any one can help me!

Thanks a lot!

Na

--
lehaina
-----------------------------------------------------------------------
lehainam's Profile: http://www.excelforum.com/member.php...fo&userid=1861
View this thread: http://www.excelforum.com/showthread.php?threadid=37761

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default WorkSheet Macro Help!

You could try

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If application.cutcopymode = false then Listbox1.visible=true
End Sub

Hope this helps
Rowan

"lehainam" wrote:


Dear all,

I am trying to create a macro in Excel that when user select a cell a
listbox will appear. However, when I copy a cell to paste to another
cell, first this below macro run so that I could not paste the value
that I copied. It means that if I want to use this macro in this
worksheet I couldn't copy one cell to another cell.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Listbox1.visible=true
End Sub

I would like to have a code that when I copy a cell this macro will
work until I finish to paste to another cell.

Could any one can help me!

Thanks a lot!

Nam


--
lehainam
------------------------------------------------------------------------
lehainam's Profile: http://www.excelforum.com/member.php...o&userid=18615
View this thread: http://www.excelforum.com/showthread...hreadid=377616


Reply
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
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM
How to end macro on inital active worksheet containing macro button that was clicked Silverhawk1 Excel Programming 2 May 14th 04 03:58 PM
How? Macro to copy range to new worksheet, name new worksheet, loop Repoman Excel Programming 9 October 9th 03 01:45 PM
macro to apply worksheet event to active worksheet Paul Simon[_2_] Excel Programming 3 August 7th 03 02:50 AM
Record Worksheet Content as Macro and Execute from another Worksheet David McRitchie[_2_] Excel Programming 2 July 23rd 03 09:43 AM


All times are GMT +1. The time now is 12:49 PM.

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"