Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Placeing data from sheet1 to sheet2 via a form button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nickjames21 - 23 Jan 2008 04:09 GMT
I have created my own custom form that I need placed on sheet2 once the
submit button (form control) is pressed.  There are 8 fields that I need to
pass.  Any ideas?  Using Excel 07.
Thanks
Nick
Joel - 23 Jan 2008 13:26 GMT
A form is the same as a sheet so using form name in the copy will work

with sheets("FormName")
  .Range("A1").copy destination:=Sheets("Sheet2").Range(B10")
  .Range("A2").copy destination:=Sheets("Sheet2").Range(B11")
  .Range("A3").copy destination:=Sheets("Sheet2").Range(B12")
  .Range("A4").copy destination:=Sheets("Sheet2").Range(B13")
  .Range("A5").copy destination:=Sheets("Sheet2").Range(B14")
  .Range("A6").copy destination:=Sheets("Sheet2").Range(B15")
  .Range("A7").copy destination:=Sheets("Sheet2").Range(B16")
  .Range("A8").copy destination:=Sheets("Sheet2").Range(B17")
end with

> I have created my own custom form that I need placed on sheet2 once the
> submit button (form control) is pressed.  There are 8 fields that I need to
> pass.  Any ideas?  Using Excel 07.
> Thanks
> Nick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.