Dear Bheema,

use below code format for your query..

Private Sub cmdsave_Click()

With Sheet1
with Userform1
.Range("F3")=.Name
.Range("F4")=.Design
.Range("F6")=.Dob
.Range("F7")=.Doj
.Range("F8")=.DOR
.Range("F11")=.DOR
.Range("E11")=.DOJ
.Range("D29")=.Pay
.Range("H29")=.GP
.Range("B40")=.Pay
.Range("E40")=.GP
.Range("H40")=.Da
End with

With Sheet2
Sheet1.Range("F4").value=.Pay
Sheet1.Range("G22").value=.Pay
Sheet1.Range("G27").value=.Pay
End With
End With
End Sub


-- 
Thanks & regards,
Noorain Ansari
 *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
*http://noorain-ansari.blogspot.com/* <http://noorain-ansari.blogspot.com/>


On Mon, Jan 23, 2012 at 1:33 PM, Shankar Bheema <shankar.n...@gmail.com>wrote:

> Dear Experts
>
> In the attached excel workbook contains two sheets page1 and page 2.
> Page1 is the first page of the application and the page 2 is the second
> page.
> The data entered in the userform would be saved corresponding cell
> (colored as red) in the workbook.
>
> I divided the application form in two sheets for the convenience of the
> data entry but how to print  one after another with the single click on the
> print command button placed in the excel workbook ?
>
> regards
> shankar
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to excel-macros@googlegroups.com
>

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to