PC Review


Reply
Thread Tools Rate Thread

ComboBox, linking cells, vba, worksheetchange function, and overal frustration

 
 
lar.the.ever.so.slightly.lost
Guest
Posts: n/a
 
      25th Jun 2007
Hello!

I've got a bit of weird problem here:

to adjust a massive database, a user can enter a numeric ID on a
separate sheet, in a manual adjustment page.
when a user enters a numeric ID number into the column C, the
worksheet is populated with a series of combo boxes. depending on the
id entered, you get either 3 or 4 combo boxes to the the right of the
object like so:


ID [book dropdown] [party dropdown] [mapping
dropdown] [type of adjustment]


for now, I'm just loading all the comboboxes, and setting type of
adjustment to invisible when I don't need it
with the data form the drop downs and ID, I use VLOOKUP to find
further values about those IDs and display those further to the right.

the problem: linking the values of the comboboxes to the cells beneath
them so that I can use Vlookup. usually this would be relatively
straightforward (linking the value of the combobox to a range). but my
life is never simple...

ok, so the dillema. since there are several sections of types of
numeric IDs that the user could enter, I've got about five sections of
data like so:

London accounts
--------------
id
id
id
id

US accounts
---------------
id
id
id

Canada accounts
---------------
id
id
etc.


since a user would not necessarily enter adjustments into each section
every time, and the user may enter adjustments out of linear order, I
need a way of keeping track of which combobox went where so that I can
then link that combobox to a cell and then preform calculations with
the values displayed in those cells. I'm not entirely sure how to
automatically link the combobox a cell, especially since the
combobox(i) and the cell you link to isn't necessarily the same each
time an adjustment is made.

I think that the easiest way to do this would be to automatically link
the combobox to the cell below it as it is pasted in. since I get the
comboboxes by copying the appropriate ones from a separate sheet, they
become "combobox(i)".

The question:: is there away to moniter what (i) is while copying a
combobox from another sheet?

I know how to set the value of the combobox to the cell, it's just
figureing which combobox I need to link that's got me stumped. I'm
also rather good at VBA (it's all I do all day) so this is driving me
nuts.

oh, and since it's such a huge database, any loops are really
agonizing to do. usually there are about 200-500 adjustments done each
time the database is updated.


sorry for the overly elaborate lead up to 1 question.
thanks
lar.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Cells from a different Worksheet with an IF Function Ghalmaraz Microsoft Excel Misc 2 18th Mar 2009 03:47 PM
How do I run a macro when cell value changes? WorksheetChange? =?Utf-8?B?a3ZuZXhjZWw=?= Microsoft Excel Programming 4 28th Aug 2006 11:19 PM
Linking cells (VLOOUP/IF function maybe?) GregA Microsoft Excel Setup 2 20th Aug 2006 01:15 AM
Named cells in a worksheetchange macro instead of hard cell refere =?Utf-8?B?TmVpbCBHb2xkd2Fzc2Vy?= Microsoft Excel Programming 1 29th Jul 2005 02:07 PM
Oc cpu on a asus a7n8x-x nf2 does temp affect the overal performance... FX Asus Motherboards 3 4th Nov 2003 11:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:45 AM.