Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TMO TMO is offline
external usenet poster
 
Posts: 1
Default Add a form onto a macro - Need help ASAP

Hi

I have made a database and I have a list of customers, what I want to
do is for the user to be able to add new customers via through a form
(go to data then form on excel 2000), how would I connect this up?
every time I try it says there is a bug and I cannot seem to unbug it,
maybe I am typing something wrong.

This is what I currently have typed:

Sub addnewcustomer()
'
' addnewcustomer Macro
' Macro recorded 12/13/2003 by TMO
'

'
Range("C5:L23").Select
ActiveSheet.ShowDataForm
End Sub

Is this right?

Also, how would I connect a macro to make the page print?

Also, can you add password onto excel? if so how.

Hope you guys can help me, thanks.


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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Add a form onto a macro - Need help ASAP


Sub addnewcustomer()
'
' addnewcustomer Macro
' Macro recorded 12/13/2003 by TMO
'

'
Range("C5:L23").CurrentRegion.Name = "Database"
ActiveSheet.ShowDataForm
End Sub

Should work.

Regards,
Tom Ogilvy

TMO wrote in message
...
Hi

I have made a database and I have a list of customers, what I want to
do is for the user to be able to add new customers via through a form
(go to data then form on excel 2000), how would I connect this up?
every time I try it says there is a bug and I cannot seem to unbug it,
maybe I am typing something wrong.

This is what I currently have typed:

Sub addnewcustomer()
'
' addnewcustomer Macro
' Macro recorded 12/13/2003 by TMO
'

'
Range("C5:L23").Select
ActiveSheet.ShowDataForm
End Sub

Is this right?

Also, how would I connect a macro to make the page print?

Also, can you add password onto excel? if so how.

Hope you guys can help me, thanks.


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Add a form onto a macro - Need help ASAP

Thanks man, your a life saver, it worked :)

Tell me how can I add a printer to a macro?

Also can I make a password login in excel?

Thanks people :)


---
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
How can I save the formulas when running a macro? Need ASAP!! MLP Excel Discussion (Misc queries) 2 November 14th 06 07:50 PM
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
Making form using Excell Help ASAP! ~Amanda~ Excel Discussion (Misc queries) 3 March 19th 05 01:51 AM


All times are GMT +1. The time now is 11:38 AM.

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

About Us

"It's about Microsoft Excel"