Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default UserForm Problem

Hi Folks,

Hoping that some kind soul could give me a push in the right direction
here, please.

I wrote an excel vba application which presents the user with a large
UserForm with numerous pages and tabs, lots of inputboxes and the like.
The purpose of which is to contain in a pleasant-to-look-at and easy to
update format specific information about a site. Things like serial
numbers, registration codes, how many of each type of license is used
etc.....

The UserForm data is loaded from prepopulated cells in Sheet1 A100:A200
then when the data is updated the corresponding value in the "holding"
cell is updated. When the UserForm initialises the textbox reads
whatever is in that cell and takes that as it's value. Making updates
simple.

Problem:-
I now need to bring another few sites online and use exactly the same
UserForm to contain data about those site too.

I want to use a listbox to present a list of all the sites _but then
get the UserForm to initialise using the data from different "holding"
cells, depending on which site was picked to work with_

I then need the UserForm to write updated textbox values into the write
cells again depending on which site was picked to work with.

Can anyone think of a simple way to do this?

I don't want to have to build a seperate UserForm for each site ( with
it's own textboxes and tabs etc ) as that would take forever!

Would be grateful for any assistance. Especially if it could be
described with my very limited xl vba knowledge in mind.

Many Thanks,

Krayten

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default UserForm Problem

I think one way would be to create an array.

Load the array with the data relative to the site and reference the
Textboxes etc to the array.
When finished editing etc...write the array to the appropriate
spreadsheet.
If this is not too clear to you please let us know .HTH

Krayten wrote:
Hi Folks,

Hoping that some kind soul could give me a push in the right direction
here, please.

I wrote an excel vba application which presents the user with a large
UserForm with numerous pages and tabs, lots of inputboxes and the like.
The purpose of which is to contain in a pleasant-to-look-at and easy to
update format specific information about a site. Things like serial
numbers, registration codes, how many of each type of license is used
etc.....

The UserForm data is loaded from prepopulated cells in Sheet1 A100:A200
then when the data is updated the corresponding value in the "holding"
cell is updated. When the UserForm initialises the textbox reads
whatever is in that cell and takes that as it's value. Making updates
simple.

Problem:-
I now need to bring another few sites online and use exactly the same
UserForm to contain data about those site too.

I want to use a listbox to present a list of all the sites _but then
get the UserForm to initialise using the data from different "holding"
cells, depending on which site was picked to work with_

I then need the UserForm to write updated textbox values into the write
cells again depending on which site was picked to work with.

Can anyone think of a simple way to do this?

I don't want to have to build a seperate UserForm for each site ( with
it's own textboxes and tabs etc ) as that would take forever!

Would be grateful for any assistance. Especially if it could be
described with my very limited xl vba knowledge in mind.

Many Thanks,

Krayten


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default UserForm Problem

Have an initial form, or even a tab on your form, with the listbox, and
select from there.

You can use a case statement to determine where the data is depending upon
the selection, or better still, name all the data according to the source.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krayten" wrote in message
ups.com...
Hi Folks,

Hoping that some kind soul could give me a push in the right direction
here, please.

I wrote an excel vba application which presents the user with a large
UserForm with numerous pages and tabs, lots of inputboxes and the like.
The purpose of which is to contain in a pleasant-to-look-at and easy to
update format specific information about a site. Things like serial
numbers, registration codes, how many of each type of license is used
etc.....

The UserForm data is loaded from prepopulated cells in Sheet1 A100:A200
then when the data is updated the corresponding value in the "holding"
cell is updated. When the UserForm initialises the textbox reads
whatever is in that cell and takes that as it's value. Making updates
simple.

Problem:-
I now need to bring another few sites online and use exactly the same
UserForm to contain data about those site too.

I want to use a listbox to present a list of all the sites _but then
get the UserForm to initialise using the data from different "holding"
cells, depending on which site was picked to work with_

I then need the UserForm to write updated textbox values into the write
cells again depending on which site was picked to work with.

Can anyone think of a simple way to do this?

I don't want to have to build a seperate UserForm for each site ( with
it's own textboxes and tabs etc ) as that would take forever!

Would be grateful for any assistance. Especially if it could be
described with my very limited xl vba knowledge in mind.

Many Thanks,

Krayten



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
userform problem Brian Matlack[_104_] Excel Programming 5 July 11th 06 09:57 PM
Userform problem Andrew B[_4_] Excel Programming 3 April 26th 06 01:28 AM
userform problem Pierre via OfficeKB.com[_2_] Excel Programming 3 October 14th 05 03:08 PM
Userform from a Userform Problem Adrian Excel Programming 1 October 12th 05 04:57 PM
UserForm Problem mayuss Excel Programming 3 August 9th 04 01:18 PM


All times are GMT +1. The time now is 04:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"