ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   simple vba queries.. please help.. (https://www.excelbanter.com/excel-programming/362082-simple-vba-queries-please-help.html)

gauravgrover

simple vba queries.. please help..
 

Ques 1: I want that when i send the excel file to somebody then he
should see only vb screen not my excel data sheet.. so it should open
with vb page as its front page. How can it be done?

Ques2: When we are accessing data from an excel file to vb's textbox
can we use data from different sheets like (normally it is
Range("A1").value=36) now if i want to have 3 statements like
sheet1.range("A1").value =36, sheet2.range("A1").value
=34,sheet3("A1").range.value =78. Can u give me a solution of this
situation?


--
gauravgrover
------------------------------------------------------------------------
gauravgrover's Profile: http://www.excelforum.com/member.php...o&userid=34666
View this thread: http://www.excelforum.com/showthread...hreadid=544334


Tom Ogilvy

simple vba queries.. please help..
 
Possibly use the worbook_open event to hide the application and display your
userform.

See Chip Pearson's page on events for an overview:
http://www.cpearson.com/excel/events.htm

you can use code to assign values from any sheet to the textbox or as an
alternative you can link you textboxes to any sheet by using an argument like

sheet1!A1
sheet2!A1
sheet3!A1

--
Regards,
Tom Ogilvy


"gauravgrover" wrote:


Ques 1: I want that when i send the excel file to somebody then he
should see only vb screen not my excel data sheet.. so it should open
with vb page as its front page. How can it be done?

Ques2: When we are accessing data from an excel file to vb's textbox
can we use data from different sheets like (normally it is
Range("A1").value=36) now if i want to have 3 statements like
sheet1.range("A1").value =36, sheet2.range("A1").value
=34,sheet3("A1").range.value =78. Can u give me a solution of this
situation?


--
gauravgrover
------------------------------------------------------------------------
gauravgrover's Profile: http://www.excelforum.com/member.php...o&userid=34666
View this thread: http://www.excelforum.com/showthread...hreadid=544334



Ivan Raiminius

simple vba queries.. please help..
 
Hi,

to ques 1:
in workbook_open event procedure you can use statement like this:

Application.VBE.Windows.Item(1).SetFocus

to ques 2:
I am afraid I don't understand your question. Could you re-phrase it?

Regards,
Ivan



All times are GMT +1. The time now is 05:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com