Click here to Skip to main content
15,887,135 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How i can use stored procedure in vb.net with two parameters Pin
ZurdoDev5-May-14 9:38
professionalZurdoDev5-May-14 9:38 
GeneralRe: How i can use stored procedure in vb.net with two parameters Pin
Dave Kreskowiak5-May-14 9:28
mveDave Kreskowiak5-May-14 9:28 
Questioncopying cells to another worksheet in next available cell per column Pin
David Rubin5-May-14 5:51
David Rubin5-May-14 5:51 
SuggestionRe: copying cells to another worksheet in next available cell per column Pin
ZurdoDev5-May-14 9:14
professionalZurdoDev5-May-14 9:14 
GeneralRe: copying cells to another worksheet in next available cell per column Pin
David Rubin5-May-14 9:22
David Rubin5-May-14 9:22 
AnswerRe: copying cells to another worksheet in next available cell per column Pin
ZurdoDev5-May-14 9:29
professionalZurdoDev5-May-14 9:29 
GeneralRe: copying cells to another worksheet in next available cell per column Pin
David Rubin5-May-14 9:40
David Rubin5-May-14 9:40 
AnswerRe: copying cells to another worksheet in next available cell per column Pin
ZurdoDev5-May-14 9:43
professionalZurdoDev5-May-14 9:43 
We can't run your code. All you have to do is put a breakpoint and then walk through your code. Also, you should only post the relevant code. You posted the email code which just clutters up the question and makes it harder for us to help.

However, you have:
SQL
Range("E" & lMaxRows + 1).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

If you just look at it you will see that it is selecting column E every time so naturally you need to change that part to be whatever column you want.

Also note, you can record macros in Excel doing what you want and have it write the code for you (with few tweaks to get it into VB).
There are only 10 types of people in the world, those who understand binary and those who don't.

GeneralRe: copying cells to another worksheet in next available cell per column Pin
David Rubin5-May-14 9:48
David Rubin5-May-14 9:48 
GeneralRe: copying cells to another worksheet in next available cell per column Pin
ZurdoDev5-May-14 9:49
professionalZurdoDev5-May-14 9:49 
GeneralRe: copying cells to another worksheet in next available cell per column Pin
David Rubin5-May-14 12:27
David Rubin5-May-14 12:27 
AnswerRe: copying cells to another worksheet in next available cell per column Pin
ZurdoDev5-May-14 12:58
professionalZurdoDev5-May-14 12:58 
QuestionMicrosoft.Visualbasic Pin
SPSandy5-May-14 4:57
SPSandy5-May-14 4:57 
AnswerRe: Microsoft.Visualbasic Pin
Dave Kreskowiak5-May-14 6:20
mveDave Kreskowiak5-May-14 6:20 
GeneralRe: Microsoft.Visualbasic Pin
SPSandy5-May-14 9:55
SPSandy5-May-14 9:55 
QuestionE-mail Notification Pin
waner michaud4-May-14 13:23
waner michaud4-May-14 13:23 
AnswerRe: E-mail Notification Pin
Dave Kreskowiak4-May-14 18:37
mveDave Kreskowiak4-May-14 18:37 
QuestionCapture a monochrome image of panel control Pin
gwittlock3-May-14 2:27
gwittlock3-May-14 2:27 
AnswerRe: Capture a monochrome image of panel control Pin
Richard MacCutchan3-May-14 3:32
mveRichard MacCutchan3-May-14 3:32 
GeneralRe: Capture a monochrome image of panel control Pin
gwittlock3-May-14 3:41
gwittlock3-May-14 3:41 
GeneralRe: Capture a monochrome image of panel control Pin
Richard MacCutchan3-May-14 3:50
mveRichard MacCutchan3-May-14 3:50 
GeneralRe: Capture a monochrome image of panel control Pin
gwittlock3-May-14 5:09
gwittlock3-May-14 5:09 
GeneralRe: Capture a monochrome image of panel control Pin
Eddy Vluggen3-May-14 7:41
professionalEddy Vluggen3-May-14 7:41 
GeneralRe: Capture a monochrome image of panel control Pin
gwittlock3-May-14 7:53
gwittlock3-May-14 7:53 
Questionsimple multi thread app behaving weirdly Pin
Tony Snowden1-May-14 23:55
Tony Snowden1-May-14 23:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.