Solved

access vba  - textbox in worksheet

Posted on 2014-04-29
2
1,015 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

805 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