Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VBA - how do I pass info from dropdown list to a string??

Hi All

I am sure it's me being dumb, but I need to do the following - but cannot
think how to do it.

I have a VBA form with a linked dropdown box to some vehicle registrations.
Within this form i want the user to be able to change a dedicated vehicle
registration, which is on the dropdown, to one that the user can enter.

Can I do the following - get the registration selected in the dropdown into
a vbstring and use the code below to change it to the new registration

cboOldVehicle is the Vehicle in the dropdowm
txtNewVehicle is the replacement vehicle

Worksheets("VPC").Columns("D").Replace What:=cboOldVehicle,
Replacement:=txtNewVehicle, SearchOrder:=xlByColumns, MatchCase:=True

Any help in this would be appreciated!!
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
Pass Command Button info J Streger Excel Programming 3 February 5th 10 08:51 PM
Open workbook and pass info greg Excel Programming 3 June 17th 08 08:12 AM
Pass Info Between Macros (Re-Visited) Rob Excel Programming 4 August 31st 06 07:57 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 0 July 5th 06 04:09 PM
Recording info from a dropdown list... Jay3253 Excel Discussion (Misc queries) 2 November 3rd 05 09:32 PM


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

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"