Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multi Function Excel Data Form

Hi,

I have a form that adds a name to a defined name list. This list i
already attached to a combo box. I have a few things I would like t
happen once this name has been entered. So, without further ado ;)
here are my questions:

1) Is there a way I can auto-configure the combo box to include the ne
record added to the bottom of the list?

2) To copy an existing worksheet and automatically replace word X wit
the new name added via the form.

3) To add the word from the form to all the defined name ranges in th
new worksheet.

If this is possible, it would be quite amazing :)

:confused

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multi Function Excel Data Form

So far, all I can manage is for the macro to copy the sheet. I don'
know how to rename it to the value entered in the user data entry form
nor do I know how to replace all the X words to the value entered i
the user data entry form.

Here is the code I have so far:

ActiveWorkbook.Sheets("Activities").Activate

Range("B7").Select

Do

If IsEmpty(ActiveCell) = False Then

ActiveCell.Offset(1, 0).Select

End If

Loop Until IsEmpty(ActiveCell) = True

ActiveCell.Value = txtActivity.Value

Sheets("Aerobics").Select

Sheets("Aerobics").Copy After:=Sheets(4)

Sheets("Aerobics (2)").Select

Sheets("Aerobics (2)").Value = txtActivity

Selection.Replace What:="Aerobics", Replacement:=txtActivity
LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False
_
ReplaceFormat:=False

Unload Me


Some of it is probably stupid, I recorded a macro to do what I wante
and tried to edit it.

Another question, is it possible for this line of code:

Sheets("Aerobics").Copy After:=Sheets(4)

To insert the new sheet after the last sheet? As more sheets get added
Sheets(4) won't be the end sheet.

Thanks :

--
Message posted from http://www.ExcelForum.com

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
Creating multi-user Excel form for online DownSouthLeftie Excel Discussion (Misc queries) 0 November 27th 09 04:31 AM
I WANT THE MULTI CELL DATA IN ADDRESS FORM OR IN ONE CELL farhan Excel Discussion (Misc queries) 1 July 10th 08 08:15 AM
Excel Function -- Data / Form Bonita Excel Worksheet Functions 0 February 29th 08 07:01 PM
Multi-field listbox in an Excel form Lee S. Excel Discussion (Misc queries) 0 September 14th 06 10:19 PM
Can you use the validate function in a data form in Excel? Jolly Excel Worksheet Functions 0 December 12th 05 11:00 PM


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