Microsoft
Software
Hardware
Network
Question : Trying to optimize my VBA Code - help with syntax
Hi - I'm trying to use the same code but referencing different listview boxes. I thought I could get away with:
IF A = "XXXX" then
with lv1
else
with lv2
end if
That didn't work...So I thought I would assign it box = "XXXX" then use box.columnheaders... and that didn't work.
Is there a way I can accomplish this?
Thanks - Zack
Answer : Trying to optimize my VBA Code - help with syntax
You could make a ContextMenu appear in response to a ListBox item click:
http://msdn.microsoft.com/
en-us/libr
ary/
system
.windows.f
orms.conte
xtmenu(VS.
71).aspx
Use the Show() method:
http://msdn.microsoft.com/
en-us/libr
ary/
system
.windows.f
orms.conte
xtmenu.sho
w(VS.71).a
spx
Random Solutions
How to make WPF button background color silver?
Design issue - not enough room on screen.Subforms/Pop ups/Tabs
mysql stored proc parameter
OMA and OWA
Ruby script failing: (NoMethodError)
Will an AGP Video Card work in a PCI Express Slot?
Excel VBA Select All File Types From a Specified Folder
how to let javascript load data from a server
Is there a good solution for monitoring the status of RAID array in HP or IBM server run Windows 2003?
scheduled task not running - win 2008