Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2008, 06:51 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy cell into userform?

Hello,

I have a bill template that users enter narrative, amounts and VAT into a user form, that information is then displayed in a table format in the template ready to print.

I am trying to create a userform that will copy the narrative from main document in the selected cell and place the text into a textbox within a userform so that the user can edit?

Can anyone advise how I can go about this, or where I can look for this information, as I am really confused as to the correct syntax for this.

Many thanks,

 
Old March 18th, 2008, 11:03 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

This starts a new sentence. Should be a period, followed by a capital letter:
"... user form, that information..." should be "... user form. That information..."

"I am trying to create a userform that will copy the narrative from main document in the selected cell and place the text into a textbox within a userform so that the user can edit" is a statement, not a question, and so should end with a period, not a question mark.

(Trying to be helpful...)

What environment does this apply to? Is this Excel? VB6? VB.NET? Access? Word (if so, which version)?

If you are using Word, the Selection object should have in it the data you are after.

The word you used, "main document," implies Word, but the description ",in the selected cell," seems to imply Excel. If you could clarify, that would be helpful.
 
Old April 29th, 2008, 07:04 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Cabbage!

Check this link;
http://in.geocities.com/raghavendra_...To_TextBox.zip

it will populates the two particular cells data to the userForm two respective textboxes.

Enter the Billamount in B3 and VAT in B4 and click that "call form" button.

Hope this will give you an idea.

With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy from cell A3 workbookA into cell A3 workbookB mona_upm84 Excel VBA 1 September 5th, 2008 01:31 AM
copy columns based on cell values EricB123 Excel VBA 0 December 18th, 2007 12:51 AM
Copy data into cell by cell zone Excel VBA 2 September 4th, 2007 11:50 AM
I need to refer a cell within a cell like =RC[ RC2 chakravarthi_os Excel VBA 1 September 24th, 2006 08:19 AM
Lose cell Text when editing cell in VSFlexGrid 6 bobcratchet VB How-To 0 July 30th, 2004 09:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.