Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

If Statement VB via Excel

$
0
0
Hi

Was wondering if somebody could help

I am struggling with some code

I have a form with a update button and once pressed i need it to do the following. Hope this makes sense

If combobox1 = worksheet1 cell a2 then copy textbox1 to sheet1 b2, else
If combobox1 = worksheet1 cell a3 a3 then copy textbox1 to sheet1 b3, else
If combobox1 = worksheet1 cell a4 then copy textbox1 to sheet1 b4, else
If combobox1 = worksheet1 cell a5 then copy textbox1 to sheet1 b5, else
If combobox1 = worksheet1 cell a6 then copy textbox1 to sheet1 b6, else
If combobox1 = worksheet1 cell a7 then copy textbox1 to sheet1 b7, else end

Any help would really be appricated

thanks

steve

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>