Hi All,
I am trying to develop a form in Vb that stores data in perticular cells based macthing value to the row and colum values in a table.
I can get focus on the colum value of the table but need to move the focus from 6 colums to the right from the activecell.
How do i do this? Your help will be greatly appreciated.
Thank You in advance.
Vishwas
5 1341
I am trying to develop a form in Vb that stores data in perticular cells based macthing value to the row and colum values in a table.
I can get focus on the colum value of the table but need to move the focus from 6 colums to the right from the activecell.
Can you tell us what version of VB you are using, and what controls you are using?
Can you tell us what version of VB you are using, and what controls you are using?
i am using Vb in MS office (excel) 2003 , I am using text boxes and a command botton.
Thank You
i am using Vb in MS office (excel) 2003 , I am using text boxes and a command button.
In that case, you're not actually using VB - it's VBA. Similar, but not identical.
It sounds as though what you want to use is the Offset function (actually, I think it might be a method) to specify a location relative to the current cell..
Hi killer42
Mate i sincerely appreciate your help,
I am an accountant trying to figure out easier way of doing things on excel,
i found that focus from current cell to where you want by using for example a sample code as below.
If (SngBustype = "B/Tax") Then
ActiveCell.Offs et(0, 3).Range("A1"). Select
ActiveCell.Form ulaR1C1 = CurAmount
Thank You
Vishwas
I am an accountant trying to figure out easier way of doing things on excel, i found that focus from current cell to where you want by using for example a sample code as below.
If (SngBustype = "B/Tax") Then
ActiveCell.Offs et(0, 3).Range("A1"). Select
ActiveCell.Form ulaR1C1 = CurAmount
Glad to see you've got your solution. :)
Don't forget, you can combine things. For instance, you could (probably) have said... - ActiveCell.Offset(0, 3).Range("A1").FormulaR1C1 = CurAmount
to get the same effect without moving the focus.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Andi B |
last post by:
Hi everyone.
I have a quick question - if I have a form which refers to a javascript when
its submitted using:
<form name = "fred" onsubmit = "test()">
and this function creates a popup window to display information in, I find
that after the window has appeared, the focus moves back to the form and the
text box used to gather user input clears. The clearing text box isnt a
|
by: Skybuck Flying |
last post by:
Hi,
I needed a method to determine if a point was on a line segment in 2D. So I
googled for some help and so far I have evaluated two methods.
The first method was only a formula, the second method was a piece of C code
which turned out to be incorrect and incomplete but by modifieing it would
still be usuable.
The first method was this piece of text:
|
by: Robert Boudra |
last post by:
I am capturing the KeyPress event on a series of text boxes and checking for
the presence of the CR character to move the focus to the next textbox in
tab order. I'm able to do this using the focus method of the textbox, but
even though the focus changes when the CR character is pressed, I still get
a "beep" from the textbox where the focus was when enter was pressed. Is
there any way to turn that off?
Bob
|
by: tlyczko |
last post by:
I have a BeforeUpdate where I need to ensure that no matter what, the
first four fields on the form (one text box, 3 combo box lists) have
data entered in them before the user closes the form or before the user
moves off the form to a subform on the main form, regardless of whether
the end user even put focus to any of the four form fields.
(It is easy to know if all 4 fields have values, but not if less than
four fields have values.)
...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |