Search : in
By :

Dynamically add controls on excel form

Last answer on Jun 14, 2009 10:48:47 am BST smd, on Jun 7, 2009 10:19:24 am BST 
 Report this message to moderators

Hello,

the main idea behind this exercise is to generate reports based on user selected column headings with certain heading having criteria to it. unless there is any other more efficient way than this.

i got a worksheet...with 20 column headings. new column headings will be added if required so. i need the excel form to automatically generate all the column headings.
i was thinking of 2 listboxes. in listbox1 all column headings shud be listed when form is opened. the user double clicks on the column heading in listbox 1 which should go to listbox2. based on the fields listed in listbox2,the relevant data from the worksheet should be retrieved and put on a temp sheet.

the twist here is (for me)....some column heading contain date values. so when a date field is selected from listbox1, the user shud have the option of selecting a start date and end date. Based on the start and end dates of the date field selected, the code shud retreive those records alongwith the details from the other fields in the listbox2.

the user can select one or more date fields from listbox1 and each date field selected has its own start and end dates.

thanks...

Configuration: Windows XP
Firefox 3.0.10

Best answers for « dynamically add controls on excel form » in :
Memorize constants in Excel ShowMemorize constants in Excel You have created your table, and there are several constants used several times (VAT ,per hour, etc. ..). Solution 1[Basic]: you write them in your forms, ex: = C3 * 1196 to calculate a TTC value from an...
Adding a VBA CommandButton with its respective the code ShowAdding a VBA CommandButton with its respective the code Paste these two sub in a general module (Module1 for example). Sub CreateButton() Dim Obj As Object Dim Code As String Sheets("Sheet1").Select 'create button ...
Creating a shortcut to Control Panel option ShowCreating a shortcut to Control Panel option Below is a simple tips for creating a shortcut to Control Panel on your Desktop. Go to Menu Start and select/open Control Panel. Then select the option you want to create shortcut on...
Download Email Address Extractor ShowEmail Address Extractor allows to extract automatically all the e-mail addresses from Outlook Express or other application. Then, you can import the results into your Windows address book, Excel, Word or other application. The extracted e-mail...
Spreadsheets - Data Entry ShowCell Content A cell of a worksheet can contain a value or be empty. The value of a cell has two essential characteristics: a type, which means the intrinsic type of the data. There are generally three types of values: numeric values, for example...
HTML forms ShowForms Interactive forms let web page authors give their pages interactive elements, such as for receiving messages from their readers, much like the reply cards found in some magazines. The reader enters information by filling in fields or clicking...
NAT- Network address translation, port forwarding and port trigg ShowThe principle of NAT Network address translation or NAT was developed in order to respond to the shortage of IP addresses with IPv4 protocol (in time the IPv6 protocol will respond to this problem). In fact, in IPv4 addressing the number of...

1

smd, on Jun 11, 2009 6:10:18 am BST
  • +1

Need help urgently on this...

Reply to smd

2

 smd, on Jun 14, 2009 10:48:47 am BST
  • +2

Hi...need help urgently on this..pls

Reply to smd