+ Reply to Thread
Results 1 to 7 of 7

putting numbers by vba macro

  1. #1
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    putting numbers by vba macro

    Hi,

    macro will be placed in macro.xlsm & book1.xlsx has located at diiferent path so the path should be hardcoded in the macro so that i can change it as per my needs

    In sheet2, whenever i run this macro it should put the data in series from 1 to 100 in row 1
    after each run of the macro it will put the numbers in series like 1,2,3,4 & so on

    Thnx
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: putting numbers by vba macro

    Here are two options.

    Using the column number or adding 1 to previous
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: putting numbers by vba macro

    Both the macros pasting the data from column B i want it to paste the data from column A

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: putting numbers by vba macro

    Add to the code, place something in A1

  5. #5
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: putting numbers by vba macro

    No Sir bcoz may be A1 will have data 1 or it may not have any data Sir, So i am looking for the same

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: putting numbers by vba macro

    Try this

    Please Login or Register  to view this content.
    Last edited by davesexcel; 10-02-2020 at 11:07 AM.

  7. #7
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: putting numbers by vba macro

    Thnx Alot Davesexcel Sir for Helping me in solving this problem Sir
    Have a Awesome Day Sir

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help with putting an 'S' in front of numbers
    By travhaughton7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2013, 10:29 AM
  2. putting random numbers in order
    By okg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2011, 04:07 PM
  3. Putting a list of numbers into groups
    By dcohen1682 in forum Excel General
    Replies: 1
    Last Post: 03-04-2010, 06:03 PM
  4. Replies: 1
    Last Post: 02-05-2010, 09:49 AM
  5. Putting spaces to the right of numbers
    By Vexrm in forum Excel General
    Replies: 3
    Last Post: 03-16-2009, 12:18 PM
  6. how to have numbers add/sub without putting = infront
    By captdewey in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-03-2005, 06:05 PM
  7. [SOLVED] Putting numbers in excel without it changing into a formula?
    By RachaelDPT in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-22-2005, 06:06 AM
  8. Re: Putting numbers in excel without it changing into a formula?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-22-2005, 06:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1