#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default form macro

I have been trying to create a macro so when played, it will open
form. This however doesnt work. Is there a way of doing this?

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default form macro

Depends on what you mean by form. If you mean userform:

Sub showForm()
userform1.show
End Sub

--
Regards,
Tom Ogilvy

jamie85 wrote in message
...
I have been trying to create a macro so when played, it will open a
form. This however doesnt work. Is there a way of doing this??


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default form macro

Ok i have created a form and the user can enter two peices of data
'Item No.' and 'No. of items'. After the user has entered these it ask
if you would like to enter another record. When i click yes and ente
another record it enters the information in the same place as th
previous record i entered. I want it to move down a row everytime
enter a new record. Is there any code available for this? THank

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default form macro

Assume your Item no data is in column 1 of sheet1

Dim rng as Range
set rng = Worksheets("sheet1").Cells(rows.count,1).end(xlup) (2)
rng.Value = Textbox1.Text
rng.offset(0,1).Value = Textbox2.Text

--
Regards,
Tom Ogilvy

jamie85 wrote in message
...
Ok i have created a form and the user can enter two peices of data,
'Item No.' and 'No. of items'. After the user has entered these it asks
if you would like to enter another record. When i click yes and enter
another record it enters the information in the same place as the
previous record i entered. I want it to move down a row everytime i
enter a new record. Is there any code available for this? 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
macro for form box carrie Excel Discussion (Misc queries) 1 March 21st 06 11:32 PM
How Can I call any form or macro.. Victor Excel Worksheet Functions 1 November 16th 05 08:42 AM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
HELP! My macro won't link with form TMO[_4_] Excel Programming 1 December 16th 03 12:53 PM
Create another form using macro? BrianG[_3_] Excel Programming 2 October 14th 03 07:37 PM


All times are GMT +1. The time now is 07:16 AM.

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"