Solved

access vba  - textbox in worksheet

Posted on 2014-04-29
2
1,007 Views
Last Modified: 2014-04-29
Hello

There is textbox3 on sheet1 of a workbook. I am in access and using accessvba. Now how in access VBA – I can do this >
Go to textbox3 of sheet1 of workbook and make it display “show”

?

Thank you
0
Comment
Question by:Rayne
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 40030407
test this codes

Sub postToXL()
     Dim xlObj As Object
     Set xlObj = CreateObject("Excel.Application")
          xlObj.workbooks.Open CurrentProject.Path & "\book1.xlsx"
          With xlObj
               .Worksheets("sheet1").textbox3.Select
               .Worksheets("sheet1").textbox3.Text = "Show"
               .Visible = True
          End With
          xlObj.Quit
End Sub
0
 

Author Comment

by:Rayne
ID: 40030429
Thank you Rey
:)
Works great
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now