Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Code no longer runs

I made a sheet with a column containing a dropdown (which I now can't
find to change, but it still drops and allows selection) which has a
list of destinations. When a destination is chosen, code populates the
next column with the mileage from my house to the target.

When I cleared out last years mileages, I somehow disconnected the
code, and it no longer fires.

When I try to run it from the VBA editor, it wants a macro name.

Any suggestions for hooking it back up? I've probably described this
poorly. Can you tell I'm a newbie?

TIA, Mike
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Code no longer runs

Don Guillett wrote:

Hard to tell without seeing. If desired, send the file to my address
below along with a snippet of this msg and clear instructions of what
you need.


Don said:

Your code could NEVER have worked since your worksheet event was not
in the sheet module and you were using a selection event instead of a
change event and there was no user form and your select was improperly
done........
Several ways to do this. One use a proper change event with a proper
select case or a VLookup in the macro or just a simple VLookup. In any
case I would put the list and numbers on another sheet so that the
list is not compromised when you delete rows.

BTW, I do custom excel programming @$75 hourly.
================================================== ====================
Don -
Thanks for taking a look. I can tell you with 100% certainty that at
one time, when an item was selected from the drop down, the adjacent
column was populated with the mileage. Why it doesn't now was the
whole purpose of my post.

Sorry, I'm too green to have the vocabulary to understand your
suggestions.

I'm not at all interested in paying you $75 an hour for programming.
This is just a little learning exercise for me.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Code no longer runs

All three of the examples I provided on your workbook worked to do as you
desire. I mentioned this in the private message (with the corrected file)
which you replied to here. Good luck.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"MikeR" wrote in message
...
Don Guillett wrote:

Hard to tell without seeing. If desired, send the file to my address
below along with a snippet of this msg and clear instructions of what you
need.


Don said:

Your code could NEVER have worked since your worksheet event was not in
the sheet module and you were using a selection event instead of a change
event and there was no user form and your select was improperly
done........
Several ways to do this. One use a proper change event with a proper
select case or a VLookup in the macro or just a simple VLookup. In any
case I would put the list and numbers on another sheet so that the list is
not compromised when you delete rows.

BTW, I do custom excel programming @$75 hourly.
================================================== ====================
Don -
Thanks for taking a look. I can tell you with 100% certainty that at one
time, when an item was selected from the drop down, the adjacent column
was populated with the mileage. Why it doesn't now was the whole purpose
of my post.

Sorry, I'm too green to have the vocabulary to understand your
suggestions.

I'm not at all interested in paying you $75 an hour for programming. This
is just a little learning exercise for me.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Code no longer runs

Don Guillett wrote:
All three of the examples I provided on your workbook worked to do as
you desire. I mentioned this in the private message (with the corrected
file) which you replied to here. Good luck.

Don -
My apologies and my thanks.

I didn't get that you had done up the 3 sheets, and so I didn't open
the workbook.

I don't understand how any of the 3 work, but I can dig into the books
again in a few weeks.

How did you un-hide the col with the names in it? I couldn't get to it.


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
Code runs to slow Patrick C. Simonds Excel Programming 15 March 16th 08 06:43 PM
Code runs slooooww GettingThere Excel Programming 2 December 15th 06 12:28 AM
Custom Toolbar Button No Longer Runs Assigned Macro Bryan Excel Discussion (Misc queries) 1 April 10th 06 06:02 PM
Code only runs once Kent Excel Programming 3 November 24th 05 03:47 PM
Macro no longer runs Lorne[_2_] Excel Programming 2 May 23rd 05 01:33 PM


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